Skip to content

Instantly share code, notes, and snippets.

@yonivav
Created February 24, 2019 09:02
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/f57c795e5dfa97ac5ef1511b9a315e5a to your computer and use it in GitHub Desktop.
Save yonivav/f57c795e5dfa97ac5ef1511b9a315e5a to your computer and use it in GitHub Desktop.
class MyView: UIView {
.
.
.
init() {
self.rx
.swipeGesture(.up)
.when(.ended)
.map { $0.view?.frame }
.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