Created
January 12, 2017 16:10
-
-
Save AndreyPanov/068690e2522ca5a995a8915f250cef6d to your computer and use it in GitHub Desktop.
runCreationFlow
This file contains 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
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