Tag Archives: UISwitch

How to test the state of a UISwitch

We can use the isOn property of your switch to do this:

Alternatively we can use the square-bracket notation like so: