Instance Property

acceptsTouchEvents

A Boolean value indicating whether the view accepts touch events.

Declaration

var acceptsTouchEvents: Bool { get set }

Discussion

A view accepts touch events when the value of this property is true. By default, views do not accept touch events, so the default value of this property is false. You can override this property and return a different value if you want your view to handle touch events.

See Also

Touch Event Handling

var wantsRestingTouches: Bool

A Boolean value indicating whether the view wants resting touches.