Skip to content

Instantly share code, notes, and snippets.

@yonivav
Last active April 1, 2019 09:21
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 yonivav/903d37a6ee78d75daf0e7f43e7db0d62 to your computer and use it in GitHub Desktop.
Save yonivav/903d37a6ee78d75daf0e7f43e7db0d62 to your computer and use it in GitHub Desktop.
class MyView: UIView {
.
.
.
init() {
self.rx
.swipeGesture(.up)
.when(.ended) // Observable<UISwipeGestureRecognizer>
.bind(to: viewModel.viewDidSwiped)
.disposed(by: bag)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment