Last active
April 1, 2017 17:49
-
-
Save AndreyPanov/5457853b82b8ac66f26e46c5fbfa1a37 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