UIControl
extension Reactive where Base: UIControl
The reactive extension can be accessed through the reactive
instance property and the reactive
static property.
-
Create a signal which sends a
value
event for each of the specified control events.Declaration
Swift
public func controlEvents(_ controlEvents: UIControlEvents) -> Signal<Base, NoError>
Parameters
controlEvents
The control event mask.
Return Value
A signal that sends the control each time the control event occurs.
-
Sets whether the control is enabled.
Declaration
Swift
public var isEnabled: BindingTarget<Bool>
-
Sets whether the control is selected.
Declaration
Swift
public var isSelected: BindingTarget<Bool>
-
Sets whether the control is highlighted.
Declaration
Swift
public var isHighlighted: BindingTarget<Bool>