<!--
{
  "availability" : [
    "macOS: 10.0.0 - 15.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSToolbarItem/allowsDuplicatesInToolbar",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSToolbarItem(py)allowsDuplicatesInToolbar"
  },
  "title" : "allowsDuplicatesInToolbar"
}
-->

# allowsDuplicatesInToolbar

A Boolean value that indicates whether the toolbar item can appear more than once in a toolbar.

```
var allowsDuplicatesInToolbar: Bool { get }
```

## Discussion

If the value in this property is <doc://com.apple.documentation/documentation/Swift/true>, the toolbar allows someone to drag more than one copy of the toolbar item from the customization palette. If the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, the toolbar prevents someone from dragging more than one copy of the item from the customization palette.

By default, if an item with the same identifier is already in the toolbar, dragging it in again will effectively move it to the new position.

---

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)