Contents

isTouched

A Boolean value that indicates whether the user is touching the button.

Declaration

var isTouched: Bool { get }

Discussion

If this property is true, the user is touching the button; otherwise, the user isn’t. For controllers that support capacitive touch, the user can start touching the button without pressure when the value property is 0. For controllers that don’t support capacitive touch, the user starts touching the button when the value property is greater than 0.

See Also

Accessing input values