Contents

delaysTouchesEnded

A Boolean value that determines whether the gesture recognizer delays sending touches in an end phase to its view.

Declaration

var delaysTouchesEnded: Bool { get set }

Discussion

When the value of this property is true (the default) and the gesture recognizer is analyzing touch events, the window suspends delivery of touch objects in the UITouch.Phase.ended phase to the attached view. If the gesture recognizer subsequently recognizes its gesture, these touch objects are canceled (with a touchesCancelled(_:with:) message). If the gesture recognizer doesn’t recognize its gesture, the window delivers these objects in an invocation of the view’s touchesEnded(_:with:) method. Set this property to false to have touch objects in the UITouch.Phase.ended delivered to the view while the gesture recognizer is analyzing the same touches.

See Also

Canceling and delaying touches