Instance Property

cancelsTouchesInView

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

Declaration

var cancelsTouchesInView: Bool { get set }

Discussion

When this property is true (the default) and the receiver recognizes its gesture, the touches of that gesture that are pending are not delivered to the view and previously delivered touches are cancelled through a touchesCancelled(_:with:) message sent to the view. If a gesture recognizer doesn’t recognize its gesture or if the value of this property is false, the view receives all touches in the multi-touch sequence.

See Also

Canceling and Delaying Touches

var delaysTouchesBegan: Bool

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

var delaysTouchesEnded: Bool

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