UISwitch

  • SwifterSwift: Toggle a UISwitch

    Declaration

    Swift

    public func toggle(animated: Bool = true)

    Parameters

    animated

    set true to animate the change (default is true)