Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Last active April 10, 2017 18:36
Show Gist options
  • Save AndreyPanov/d25417363c0e323b7e359110f4b99b36 to your computer and use it in GitHub Desktop.
Save AndreyPanov/d25417363c0e323b7e359110f4b99b36 to your computer and use it in GitHub Desktop.
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