RxSwiftCommunity / RxGesture

RxSwift reactive wrapper for view gestures
MIT License
1.39k stars 182 forks source link

Pan gesture type ? #21

Closed plm75 closed 8 years ago

plm75 commented 8 years ago

Sorry in advance for a very basic question, but I'm having some trouble with the following:

class SomeView: UIView {
  var panGesture: [WHAT IS THE TYPE]!

  override init(frame: CGRect) {
    // ...
    self.panGesture = self.rx_gesture(.Pan(.Changed))
    // ....
  }
}

What type should panGesture be declared as ? I tried:

- ControlEvent<RxGestureTypeOption>  => undeclared type 'ControlEvent'
- Observable<RxGestureTypeOption> => cannot assign value of type 'ControlEvent<RxGestureTypeOption> to type 'Observable<RxGestureTypeOption>'

Thanks

plm75 commented 8 years ago

Forgot to import RxCocoa .... Sorry!