Instance Property

delaysContentTouches

A Boolean value that determines whether the scroll view delays the handling of touch-down gestures.

Declaration

var delaysContentTouches: Bool { get set }

Discussion

If the value of this property is true, the scroll view delays handling the touch-down gesture until it can determine if scrolling is the intent. If the value is false , the scroll view immediately calls touchesShouldBegin(_:with:in:). The default value is true.

See the class description for a fuller discussion.

See Also

Managing Touches

func touchesShouldBegin(Set<UITouch>, with: UIEvent?, in: UIView)

Overridden by subclasses to customize the default behavior when a finger touches down in displayed content.

func touchesShouldCancel(in: UIView)

Returns whether to cancel touches related to the content subview and start dragging.

var canCancelContentTouches: Bool

A Boolean value that controls whether touches in the content view always lead to tracking.

var directionalPressGestureRecognizer: UIGestureRecognizer

The underlying gesture recognizer for directional button presses.