Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Last active April 1, 2017 17:49
Show Gist options
  • Save AndreyPanov/5457853b82b8ac66f26e46c5fbfa1a37 to your computer and use it in GitHub Desktop.
Save AndreyPanov/5457853b82b8ac66f26e46c5fbfa1a37 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