From 4ee1d6f93a46d0f887954f97cddcc8a2a2e13ba8 Mon Sep 17 00:00:00 2001 From: antonnazarov Date: Sun, 18 Aug 2019 13:45:02 -0700 Subject: [PATCH] Add documentation for RxGestureRecognizerDelegate properties --- Pod/Classes/RxGestureRecognizerDelegate.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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