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

# visibilityPriority

The display priority associated with the toolbar item.

```
var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
```

## Discussion

The default value of this property is [`standard`](/documentation/AppKit/NSToolbarItem/VisibilityPriority-swift.struct/standard). Assign a higher priority to give preference to the toolbar item when space is limited.

When a toolbar doesn’t have enough space to fit all of its items, it pushes lower-priority items to the overflow menu first. When two or more items have the same priority, the toolbar removes them one at a time starting from the trailing edge.

---

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)