Last active
February 24, 2019 09:09
-
-
Save yonivav/a662d58b6efb878867a13a818a38a249 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MyView: UIView { | |
. | |
. | |
. | |
init() { | |
self.rx | |
.swipeGesture(.up) | |
.when(.ended) | |
.subscribe { [weak self] swipeGestureRecognizer in | |
guard let self = self else { return } | |
self.viewModel.viewDidSwipe.onNext(swipeGestureRecognizer) | |
} | |
.disposed(by: bag) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment