<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AutomaticAssessmentConfiguration",
  "identifier" : "/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/allowedMenuBarItems",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Automatic Assessment Configuration"
    ],
    "preciseIdentifier" : "c:objc(cs)AEAssessmentConfiguration(py)allowedMenuBarItems"
  },
  "title" : "allowedMenuBarItems"
}
-->

# allowedMenuBarItems

The set of menu bar items that should remain visible during an assessment.

```
var allowedMenuBarItems: Set<AEMenuBarItem>? { get set }
```

## Discussion

When [`allowsMenuBar`](/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/allowsMenuBar) is `true`, the menu bar is restricted to only the items
specified in this set. If this property is `nil`, all menu bar items are allowed
(unrestricted menu bar).

> Note: This property only takes effect when ``doc://com.apple.automaticassessmentconfiguration/documentation/AutomaticAssessmentConfiguration/AEAssessmentConfiguration/allowsMenuBar`` is `true`.

---

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)