UIGestureRecognizer(PSPDFInteractionComponentSupport)
Objective-C
@interface UIGestureRecognizer (PSPDFInteractionComponentSupport)
// MARK: Setting up Relationships with Other Components
/// Creates a relationship with gesture recognizers in the given component that
/// will prevent this gesture recognizer from transitioning from `.possible`
/// state until all gesture recognizers in `otherComponent` transition to
/// `.failed` state.
///
/// If any gesture recognizer in `otherComponent` transitions to `.began` or
/// `.ended` state then this gesture recognizer will instead transition to
/// `.failed` state.
///
/// > Note: Not all components are backed by gesture recognizers, and some
/// > components can be backed by gesture recognizers just on one iOS version.
/// > Be sure to check documentation of individual components to learn more.
///
/// - Parameters
/// - otherComponent: The other interaction component.
- (void)pspdf_requireGestureRecognizersInComponentToFail:(PSPDFInteractionComponent *)otherComponent NS_SWIFT_UNAVAILABLE("Use `require(toFail:)` instead.");
@end
Undocumented
-
Creates a relationship with gesture recognizers in the given component that will prevent this gesture recognizer from transitioning from
.possible
state until all gesture recognizers inotherComponent
transition to.failed
state.If any gesture recognizer in
otherComponent
transitions to.began
or.ended
state then this gesture recognizer will instead transition to.failed
state.Note
Not all components are backed by gesture recognizers, and some components can be backed by gesture recognizers just on one iOS version. Be sure to check documentation of individual components to learn more.
Declaration
Objective-C
- (void)pspdf_requireGestureRecognizersInComponentToFail: (nonnull PSPDFInteractionComponent *)otherComponent;
-
Create a relationship with gesture recognizers in the given component that will prevent this gesture recognizer from transitioning from
.possible
state until all gesture recognizers inotherComponent
transition to.failed
state.If any gesture recognizer in
otherComponent
transitions to.began
or.ended
state then this gesture recognizer will instead transition to.failed
state.Note
Not all components are backed by gesture recognizers, and some components can be backed by gesture recognizers just on one iOS version. Be sure to check documentation of individual components to learn more.
Declaration
Swift
public func require<T>(toFail component: InteractionComponent<T>) where T : AnyObject