Contents

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

  • touch:

    A Uitouch object that is part of the current multi-touch sequence and associated with event.

  • event:

    A Uievent object that includes a reference to touch.

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