Created
April 9, 2017 13:05
-
-
Save thiagolioy/95292664f1a9c83350e71905d729b3db to your computer and use it in GitHub Desktop.
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 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