Instance Property

value

The level of pressure being applied to the button.

Declaration

var value: Float { get }

Discussion

If pressure is being applied to the button, then the isPressed property is true and this property indicates the amount of pressure being applied to the button. The pressure value is normalized to a number between 0.0 (minimum pressure) and 1.0 (maximum pressure).

If no pressure is being applied to the button, then the isPressed property is false and this property holds a value of 0.0.

See Also

Reading the Button’s Value

var isPressed: Bool

A Boolean value that indicates whether the button is pressed.