<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbar/allowsUserCustomization",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSToolbar(py)allowsUserCustomization"
  },
  "title" : "allowsUserCustomization"
}
-->

# allowsUserCustomization

A Boolean value that indicates whether users can modify the contents of the toolbar.

```
var allowsUserCustomization: Bool { get set }
```

## Discussion

If the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the toolbar enables the Customize Toolbar… menu item. If the value is <doc://com.apple.documentation/documentation/Swift/false>, the toolbar disables this menu item. The Customize Toolbar… menu item lets people change the items on the toolbar, rearrange their positions, and change the toolbar’s display mode. This attribute does not affect someone’s ability to show or hide the toolbar. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

You can change the value of this property at any time to change your toolbar’s customization behavior. For example, you might prevent toolbar customizations while your app processes some other event. If you set this property to <doc://com.apple.documentation/documentation/Swift/true>, set the [`autosavesConfiguration`](/documentation/AppKit/NSToolbar/autosavesConfiguration) property to true to persist any customizations.

---

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)