positionDidChangeHandler
The block that the profile calls when the value of the switch changes.
Declaration
var positionDidChangeHandler: ((any GCPhysicalInputElement, any GCSwitchPositionInput, Int) -> Void)? { get set }Discussion
The block’s parameters are:
elementThe element whose position changes.
inputThe input object that represents the position.
positionThe new position of the element.