Created
May 20, 2020 12:51
-
-
Save AndreyAnt/187b5c372616b388610b9a05e06c0043 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
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