Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private func setupObserving() {
  2. ...
  3.  
  4. // Pan gesture state observing.
  5. observables.panGestureState.observer = { [weak self] state in
  6. self?.panGestureStateChanged(state: state)
  7. }
  8. }
  9.  
  10. private func panGestureStateChanged(state: UIGestureRecognizerState) {
  11. switch state {
  12. case .began:
  13. panGestureBegan()
  14. case .ended:
  15. panGestureEnded()
  16. case .changed:
  17. panGestureChanged()
  18. default:
  19. break
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement