Instance Property

delaysTouchesBegan

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

Declaration

var delaysTouchesBegan: Bool { get set }

Discussion

When the value of this property is false (the default), views analyze touch events in UITouch.Phase.began and UITouch.Phase.moved in parallel with the receiver. When the value of the property is true, the window suspends delivery of touch objects in the UITouchPhaseBegan phase to the view. If the gesture recognizer subsequently recognizes its gesture, these touch objects are discarded. If the gesture recognizer, however, does not recognize its gesture, the window delivers these objects to the view in a touchesBegan(_:with:) message (and possibly a follow-up touchesMoved(_:with:) message to inform it of the touches’ current locations). Set this property to true to prevent views from processing any touches in the UITouchPhaseBegan phase that may be recognized as part of this gesture.

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 delaysTouchesEnded: Bool

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