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>'
Sorry in advance for a very basic question, but I'm having some trouble with the following:
What type should panGesture be declared as ? I tried:
Thanks