SHARE
TWEET

Untitled

a guest Jul 17th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
Top