---
title: allowsUserCustomization
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/allowsusercustomization
---

# allowsUserCustomization

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

## Declaration

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

## Discussion

Discussion If the value of this property is true, the toolbar enables the Customize Toolbar… menu item. If the value is 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 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 true, set the autosavesConfiguration property to true to persist any customizations.

## See Also

### Configuring the toolbar’s behavior

- [isVisible](appkit/nstoolbar/isvisible.md)
- [displayMode](appkit/nstoolbar/displaymode-swift.property.md)
- [NSToolbar.DisplayMode](appkit/nstoolbar/displaymode-swift.enum.md)
- [showsBaselineSeparator](appkit/nstoolbar/showsbaselineseparator.md)
- [allowsExtensionItems](appkit/nstoolbar/allowsextensionitems.md)
