Last active
April 10, 2017 18:36
-
-
Save AndreyPanov/d25417363c0e323b7e359110f4b99b36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override func start(with option: DeepLinkOption?) { | |
| //start with deepLink | |
| if let option = option { | |
| switch option { | |
| case .onboarding: runOnboardingFlow() | |
| case .signUp: runAuthFlow() | |
| default: childCoordinators.forEach { coordinator in | |
| coordinator.start(with: option) | |
| } | |
| } | |
| //default start | |
| } else { | |
| switch instructor { | |
| case .onboarding: runOnboardingFlow() | |
| case .auth: runAuthFlow() | |
| case .main: runMainFlow() | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment