---
title: beforeEventDispatch
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/uiupdateactionphase/beforeeventdispatch
---

# beforeEventDispatch

A phase that runs before standard event handlers.

## Declaration

```swift
class var beforeEventDispatch: UIUpdateActionPhase { get }
```

## Discussion

Discussion This phase runs before UIEvent and UIGestureRecognizer handlers run for standard events. Use this phase to prepare resources and data structures necessary to process user input events.

## See Also

### Phases

- [afterUpdateScheduled](uikit/uiupdateactionphase/afterupdatescheduled.md)
- [afterEventDispatch](uikit/uiupdateactionphase/aftereventdispatch.md)
- [beforeCADisplayLinkDispatch](uikit/uiupdateactionphase/beforecadisplaylinkdispatch.md)
- [afterCADisplayLinkDispatch](uikit/uiupdateactionphase/aftercadisplaylinkdispatch.md)
- [beforeCATransactionCommit](uikit/uiupdateactionphase/beforecatransactioncommit.md)
- [afterCATransactionCommit](uikit/uiupdateactionphase/aftercatransactioncommit.md)
- [beforeLowLatencyEventDispatch](uikit/uiupdateactionphase/beforelowlatencyeventdispatch.md)
- [afterLowLatencyEventDispatch](uikit/uiupdateactionphase/afterlowlatencyeventdispatch.md)
- [beforeLowLatencyCATransactionCommit](uikit/uiupdateactionphase/beforelowlatencycatransactioncommit.md)
- [afterLowLatencyCATransactionCommit](uikit/uiupdateactionphase/afterlowlatencycatransactioncommit.md)
- [afterUpdateComplete](uikit/uiupdateactionphase/afterupdatecomplete.md)
