Control
The base class for controls, which are visual elements that convey a specific action or intention in response to user interactions.
public class Control: View
Inheritance
Properties
allControlEvents
Returns the events for which the control has associated actions.
public private(set) var allControlEvents: Control.Event
Methods
addTarget(_:action:for:)
Associates a target object and action method with the control.
public func addTarget<Target: AnyObject>(_ target: Target,
action: @escaping (Target) -> () -> Void,
for controlEvents: Control.Event)
addTarget(_:action:for:)
Associates a target object and action method with the control.
public func addTarget<Source: Control, Target: AnyObject>(_ target: Target,
action: @escaping (Target) -> (_: Source) -> Void,
for controlEvents: Control.Event)
addTarget(_:action:for:)
Associates a target object and action method with the control.
public func addTarget<Source: Control, Target: AnyObject>(_ target: Target,
action: @escaping (Target) -> (_: Source, _: Control.Event) -> Void,
for controlEvents: Control.Event)