UISwitch
extension Reactive where Base: UISwitch
The reactive extension can be accessed through the reactive
instance property and the reactive
static property.
-
The action to be triggered when the switch is changed. It also controls the enabled state of the switch
Declaration
Swift
public var toggled: CocoaAction<Base>?
-
Sets the on-off state of the switch.
Declaration
Swift
public var isOn: BindingTarget<Bool>
-
A signal of on-off states in
Bool
emitted by the switch.Declaration
Swift
public var isOnValues: Signal<Bool, NoError>