Skip to content

Instantly share code, notes, and snippets.

@isaac-weisberg
Created October 19, 2019 16:06
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 isaac-weisberg/f04c7fd8ac7bac1503385bfc15ad53f4 to your computer and use it in GitHub Desktop.
Save isaac-weisberg/f04c7fd8ac7bac1503385bfc15ad53f4 to your computer and use it in GitHub Desktop.
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