---
title: UIContextMenuConfiguration.ElementOrder.priority
framework: uikit
role: symbol
role_heading: Case
path: uikit/uicontextmenuconfiguration/elementorder/priority
---

# UIContextMenuConfiguration.ElementOrder.priority

A constant that displays menu elements according to their priority.

## Declaration

```swift
case priority
```

## Discussion

Discussion This ordering strategy displays the first menu element in the UIMenu closest to the location of the user interaction.

## See Also

### Constants

- [UIContextMenuConfiguration.ElementOrder.automatic](uikit/uicontextmenuconfiguration/elementorder/automatic.md)
- [UIContextMenuConfiguration.ElementOrder.fixed](uikit/uicontextmenuconfiguration/elementorder/fixed.md)
