Skip to content

Instantly share code, notes, and snippets.

@AndreyAnt
Created May 20, 2020 12:51
Show Gist options
  • Save AndreyAnt/187b5c372616b388610b9a05e06c0043 to your computer and use it in GitHub Desktop.
Save AndreyAnt/187b5c372616b388610b9a05e06c0043 to your computer and use it in GitHub Desktop.
extension Reactive where Base: UIViewController {
var viewWillAppear: Observable<Bool> {
return base.rx.methodInvoked(#selector(UIViewController.viewWillAppear(_:)))
.map { $0[0] as! Bool }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment