Skip to content

Instantly share code, notes, and snippets.

@thiagolioy
Created April 9, 2017 13:05
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 thiagolioy/95292664f1a9c83350e71905d729b3db to your computer and use it in GitHub Desktop.
Save thiagolioy/95292664f1a9c83350e71905d729b3db to your computer and use it in GitHub Desktop.
func setupNavigationBackAction() {
self.navigationItem.hidesBackButton = true
var customBackButton = UIBarButtonItem(title: "Back", style: .done,
target: nil, action: nil)
customBackButton.rx.action = viewModel.backAction()
self.navigationItem.leftBarButtonItem = customBackButton
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment