Instance Property

delaysTouchesEnded

A Boolean value determining whether the receiver delays sending touches in a end phase to its view.

Declaration

var delaysTouchesEnded: Bool { get set }

Discussion

When the value of this property is true (the default) and the receiver 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 cancelled (via a touchesCancelled(_:with:) message). If the gesture recognizer does not 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

var cancelsTouchesInView: Bool

A Boolean value affecting whether touches are delivered to a view when a gesture is recognized.

var delaysTouchesBegan: Bool

A Boolean value determining whether the receiver delays sending touches in a begin phase to its view.