<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIMenuSystem/ElementGroupPreference",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIMenuSystemElementGroupPreference"
  },
  "title" : "UIMenuSystem.ElementGroupPreference"
}
-->

# UIMenuSystem.ElementGroupPreference

```
enum ElementGroupPreference
```

## Topics

### Enumeration Cases

[`case automatic`](/documentation/UIKit/UIMenuSystem/ElementGroupPreference/automatic)

The default preference. The element group is automatically included based on the platform and other system behaviors.

[`case included`](/documentation/UIKit/UIMenuSystem/ElementGroupPreference/included)

Prefer that the element group is included.

[`case removed`](/documentation/UIKit/UIMenuSystem/ElementGroupPreference/removed)

Prefer that the element group is removed.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UIMenuSystem/ElementGroupPreference/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)