Link Search Menu Expand Document

Control.Event

Constants describing the types of events possible for controls.

public struct Event: Equatable, Hashable, RawRepresentable 

Inheritance

Equatable, Hashable, RawRepresentable

Nested Type Aliases

RawValue

public typealias RawValue = Int

Initializers

init(rawValue:)

public init(rawValue: RawValue) 

Properties

rawValue

public let rawValue: RawValue

touchDown

A touch-down event in the control.

public static var touchDown: Control.Event 

touchDownRepeat

A repeated touch-down event in the control; for this event the value of the UITouch tapCount method is greater than one.

public static var touchDownRepeat: Control.Event 

touchDragInside

An event where a finger is dragged inside the bounds of the control.

public static var touchDragInside: Control.Event 

touchDragOutside

An event where a finger is dragged just outside the bounds of the control.

public static var touchDragOutside: Control.Event 

touchDragEnter

An event where a finger is dragged into the bounds of the control.

public static var touchDragEnter: Control.Event 

touchDragExit

An event where a finger is dragged from within a control to outside its bounds.

public static var touchDragExit: Control.Event 

touchUpInside

A touch-up event in the control where the finger is inside the bounds of the control.

public static var touchUpInside: Control.Event 

touchUpOutside

A touch-up event in the control where the finger is outside the bounds of the control.

public static var touchUpOutside: Control.Event 

touchCancel

A system event canceling the current touches for the control.

public static var touchCancel: Control.Event 

valueChanged

A touch dragging or otherwise manipulating a control, causing it to emit a series of different values.

public static var valueChanged: Control.Event 

A menu action has triggered prior to the menu being presented.

public static var menuActionTriggered: Control.Event 

primaryActionTriggered

A semantic action triggered by buttons.

public static var primaryActionTriggered: Control.Event 

editingDidBegin

A touch initiating an editing session in a TextField object by entering its bounds.

public static var editingDidBegin: Control.Event 

editingChanged

A touch making an editing change in a TextField object.

public static var editingChanged: Control.Event 

editingDidEnd

A touch ending an editing session in a TextField object by leaving its bounds.

public static var editingDidEnd: Control.Event 

editingDidEndOnExit

A touch ending an editing session in a TextField object.

public static var editingDidEndOnExit: Control.Event 

allTouchEvents

All touch events.

public static var allTouchEvents: Control.Event 

allEditingEvents

All editing touches for TextField objects.

public static var allEditingEvents: Control.Event 

applicationReserved

A range of control-event values available for application use.

public static var applicationReserved: Control.Event 

systemReserved

A range of control-event values reserved for internal framework use.

public static var systemReserved: Control.Event 

allEvents

All events, including system events.

public static var allEvents: Control.Event