<!--
{
  "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/UIMainMenuSystem/Configuration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIMainMenuSystemConfiguration"
  },
  "title" : "UIMainMenuSystem.Configuration"
}
-->

# UIMainMenuSystem.Configuration

A configuration for the main menu system.
You can specify whether or not certain elements are present in the initial main menu, as well as a block to build the menu using a UIMenuBuilder.

```
@MainActor class Configuration
```

## Topics

### Instance Properties

[`var documentPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/documentPreference)

Specifies a preference for document elements in the main menu.

[`var findingConfiguration: UIMenuSystem.FindElementGroupConfiguration`](/documentation/UIKit/UIMainMenuSystem/Configuration/findingConfiguration)

Configuration for the find elements should they be present in the main menu.

[`var findingPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/findingPreference)

Specifies a preference for finding elements in the main menu.

[`var inspectorPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/inspectorPreference)

Specifies a preference for inspector elements in the main menu.

[`var newScenePreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/newScenePreference)

Specifies a preference for new scene elements in the main menu.

[`var printingPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/printingPreference)

Specifies a preference for printing elements in the main menu.

[`var sidebarPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/sidebarPreference)

Specifies a preference for sidebar elements in the main menu.

[`var textFormattingPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/textFormattingPreference)

Specifies a preference for text formatting elements in the main menu.

[`var toolbarPreference: UIMenuSystem.ElementGroupPreference`](/documentation/UIKit/UIMainMenuSystem/Configuration/toolbarPreference)

Specifies a preference for toolbar elements in the main menu.

## Relationships

### Conforms To

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

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)