Skip to content

Instantly share code, notes, and snippets.

@AndreyPanov
Created January 12, 2017 16:09
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/d4cedde2a01c6aee87eb4e6b5ac1f57e to your computer and use it in GitHub Desktop.
Save AndreyPanov/d4cedde2a01c6aee87eb4e6b5ac1f57e to your computer and use it in GitHub Desktop.
showItemList
func showItemList() {
let itemsView = factory.makeItemsView()
itemsView.onItemSelect = { [weak self] (item) in
self?.showItemDetail(item)
}
itemsView.onCreateButtonTap = { [weak self] in
self?.runCreationCoordinator()
}
router.setRootModule(itemsView)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment