Contents

touchedDidChangeHandler

A block that the element calls when its touch value changes.

Declaration

var touchedDidChangeHandler: ((any GCPhysicalInputElement, any GCTouchedStateInput, Bool) -> Void)? { get set }

Discussion

Use this property to get the latest state of the touch input. The block’s parameters are:

element

The element whose value changes.

input

The input of the element that changes.

touched

A Boolean value that indicates whether the user touches the button.

See Also

Getting change information