---
title: type
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uievent/type
---

# type

Returns the type of the event.

## Declaration

```swift
var type: UIEvent.EventType { get }
```

## Discussion

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

## See Also

### Getting the event type

- [UIEvent.EventType](uikit/uievent/eventtype.md)
- [subtype](uikit/uievent/subtype.md)
- [UIEvent.EventSubtype](uikit/uievent/eventsubtype.md)
