diff --git a/Pod/Classes/RxGestureRecognizerDelegate.swift b/Pod/Classes/RxGestureRecognizerDelegate.swift index defce43..7a024f8 100644 --- a/Pod/Classes/RxGestureRecognizerDelegate.swift +++ b/Pod/Classes/RxGestureRecognizerDelegate.swift @@ -55,14 +55,19 @@ public struct GestureRecognizerDelegatePolicy { public final class RxGestureRecognizerDelegate: NSObject, GestureRecognizerDelegate { + /// Corresponding delegate method: gestureRecognizerShouldBegin(:_) public var beginPolicy: GestureRecognizerDelegatePolicy = .always + /// Corresponding delegate method: gestureRecognizer(_:shouldReceive:) public var touchReceptionPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, Touch)> = .always + /// Corresponding delegate method: gestureRecognizer(_:shouldBeRequiredToFailBy:) public var selfFailureRequirementPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, GestureRecognizer)> = .never + /// Corresponding delegate method: gestureRecognizer(_:shouldRequireFailureOf:) public var otherFailureRequirementPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, GestureRecognizer)> = .never + /// Corresponding delegate method: gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:) public var simultaneousRecognitionPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, GestureRecognizer)> = .always #if os(iOS) @@ -70,6 +75,7 @@ public final class RxGestureRecognizerDelegate: NSObject, GestureRecognizerDeleg private var _pressReceptionPolicy: Any? @available(iOS 9.0, *) + /// Corresponding delegate method: gestureRecognizer(_:shouldReceive:) public var pressReceptionPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, UIPress)> { get { if let policy = _pressReceptionPolicy as? GestureRecognizerDelegatePolicy<(GestureRecognizer, UIPress)> { @@ -84,6 +90,7 @@ public final class RxGestureRecognizerDelegate: NSObject, GestureRecognizerDeleg #endif #if os(OSX) + /// Corresponding delegate method: gestureRecognizer(_:shouldAttemptToRecognizeWith:) public var eventRecognitionAttemptPolicy: GestureRecognizerDelegatePolicy<(GestureRecognizer, NSEvent)> = .always #endif