iOSSwitch.Value

From Xojo Documentation

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

Supported on Mobile (iOS).

The value of the switch. On = True, Off = False.

Sample Code

If the Tax switch is on, then set the tax rate:

Var tax As Currency
If TaxSwitch.Value Then
tax = 0.08
End If