Instance Property

type

Returns the type of the event.

Declaration

var type: UIEvent.EventType { get }

Discussion

The UIEvent.EventType constant returned by this property indicates the general type of this event—for example, whether it is a touch or motion event.

See Also

Getting the Event Type

var subtype: UIEvent.EventSubtype

Returns the subtype of the event.