ignore(_:for:)
Tells the gesture recognizer to ignore a specific touch of the given event.
Declaration
@MainActor func ignore(_ touch: UITouch, for event: UIEvent)Parameters
Discussion
If a touch isn’t part of this gesture you may pass it to this method, causing it to be ignored. UIGestureRecognizer does not cancel ignored touches on the associated view. This method is intended to be called, not overridden.
See Also
Implementing subclasses
touchesBegan(_:with:)touchesMoved(_:with:)touchesEnded(_:with:)touchesCancelled(_:with:)touchesEstimatedPropertiesUpdated(_:)reset()canBePrevented(by:)canPrevent(_:)shouldReceive(_:)shouldRequireFailure(of:)shouldBeRequiredToFail(by:)ignore(_:for:)pressesBegan(_:with:)pressesChanged(_:with:)pressesEnded(_:with:)