UISwitch
public extension UISwitch
-
SwifterSwift: Toggle a UISwitch
Declaration
Swift
func toggle(animated: Bool = true)
Parameters
animated
set true to animate the change (default is true)