Contents

shouldRequireFailure(of:)

Overridden to indicate that the specified gesture recognizer must fail before the current object begins recognizing its gesture.

Declaration

func shouldRequireFailure(of otherGestureRecognizer: NSGestureRecognizer) -> Bool

Parameters

  • otherGestureRecognizer:

    The gesture recognizer that must fail before the current object is allowed to recognize its gesture.

Return Value

true to cause the current object to wait to recognize its own gesture until the object in otherGestureRecognizer fails.

Discussion

Using this method lets you define rules that apply to all instances of your custom gesture recognizer class.

See Also

Methods for Subclasses