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
For swift 3
@IBAction func switchValueChanged(_ sender: UISwitch) { print(sender.isOn) }