Coordinators - Override

PHOTO EMBED

Tue Nov 30 2021 07:59:47 GMT+0000 (Coordinated Universal Time)

Saved by @GoodRequest. #swift

override func navigate(to step: AppStep) -> StepAction {
        switch step {
        case .showFirstViewController(let animated):
            let firstViewController = DocumentBrowserViewController(forOpeningFilesWithContentTypes: ["two", "one"])
            return .push(firstViewController)

        case .showSecondViewController(let animated):
            let secondViewController = DocumentBrowserViewController(forOpeningFilesWithContentTypes: ["hone", "two"])
            return .push(secondViewController)

        default:
            return .none
        }

    }
content_copyCOPY