---
title: allowsExtensionItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/allowsextensionitems
---

# allowsExtensionItems

A Boolean value that indicates whether the toolbar can add items for Action extensions.

## Declaration

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

## Discussion

Discussion If the value of this property is true, the toolbar can dynamically create toolbar items for Action extensions in the toolbar configuration panel. The toolbar can only add an Action extension if its Info.plist file contains the NSExtensionServiceAllowsToolbarItem key with the value true. The default value of this property is false.

## 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)
- [allowsUserCustomization](appkit/nstoolbar/allowsusercustomization.md)
