iOSSwitch.Enabled

From Xojo Documentation

Property (As Boolean )
aiOSSwitch.Enabled = newBooleanValue
or
BooleanValue = aiOSSwitch.Enabled

Supported on Mobile (iOS).

Enables or disables the switch.

Sample Code

Disable a Switch:

MySwitch.Enabled = False