Skip to content

Instantly share code, notes, and snippets.

@Sajjon
Created November 30, 2018 10:54
Show Gist options
  • Select an option

  • Save Sajjon/868ad89fd8b4e1d615cd5697f7e60349 to your computer and use it in GitHub Desktop.

Select an option

Save Sajjon/868ad89fd8b4e1d615cd5697f7e60349 to your computer and use it in GitHub Desktop.
Medium article: SLC part 3 - OnboardingCoordinato Push Scene
private extension OnboardingCoordinator {
func toTermsOfService() {
let viewModel = TermsOfServiceViewModel(useCase: onboardingUseCase)
push(scene: TermsOfService.self, viewModel: viewModel) { [unowned self] userDid in
switch userDid {
case .acceptTermsOfService: self.toAnalyticsPermission()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment