Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Created January 12, 2017 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreyPanov/068690e2522ca5a995a8915f250cef6d to your computer and use it in GitHub Desktop.
Save AndreyPanov/068690e2522ca5a995a8915f250cef6d to your computer and use it in GitHub Desktop.
runCreationFlow
func runCreationFlow() {
let (coordinator, module) = coordinatorFactory.makeItemCoordinatorBox()
coordinator.finishFlow = { [weak self, weak coordinator] item in
self?.router.dismissModule()
self?.removeDependency(coordinator)
self?.showItemDetail(item)
}
addDependency(coordinator)
router.present(module)
coordinator.start()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment