I have a UISwitch that I want to control a boolean value in a function I wrote. I looked in the UISwitch Type Reference and it listed the property
UISwitch
In Swift 3, is chance.
if mySwitch.on
to
if mySwitch.isOn
myprint