Created
October 19, 2019 16:06
-
-
Save isaac-weisberg/f04c7fd8ac7bac1503385bfc15ad53f4 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
controller.viewModel.authError | |
.bind(onNext: { [unowned controller] error in | |
let authController = AuthErrorController.instantiate() | |
authController.viewModel = AuthErrorViewModel(presenter: error) | |
authController.viewModel.logIn | |
.bind(onNext: { [unowned controller] _ in | |
controller.dismiss(animated: true) | |
}) | |
.disposed(by: authController.disposeBag) | |
controller.present(authController, animated: true) | |
}) | |
.disposed(by: controller.disposeBag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment