Switch
@available(iOS 9.0, *)
public class Switch : UISwitch
A UISwitch that handles its change event
-
Creates a UISwitch
Declaration
Swift
public init( isOn: Bool = false, toggleChanged: ((Bool) -> Void)? = nil )
Parameters
isOn
Initial value of the switch (Default: false)
toggleChanged
Closure for the the switch’s change event (Default: nil)