isOn
A Boolean value that determines whether the switch is in the on or off position.
Declaration
var isOn: Bool { get set }Discussion
This property allows you to retrieve and set (without animation) a value determining whether the UISwitch object is on or off.