<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIContextMenuConfiguration/ElementOrder",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIContextMenuConfigurationElementOrder"
  },
  "title" : "UIContextMenuConfiguration.ElementOrder"
}
-->

# UIContextMenuConfiguration.ElementOrder

Constants that define the ordering strategy for menu elements in a context menu.

```
enum ElementOrder
```

## Topics

### Constants

[`case automatic`](/documentation/UIKit/UIContextMenuConfiguration/ElementOrder/automatic)

A constant that allows the system to choose an ordering strategy according to the current context.

[`case priority`](/documentation/UIKit/UIContextMenuConfiguration/ElementOrder/priority)

A constant that displays menu elements according to their priority.

[`case fixed`](/documentation/UIKit/UIContextMenuConfiguration/ElementOrder/fixed)

A constant that displays menu elements in a fixed order.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UIContextMenuConfiguration/ElementOrder/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)