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

# title

The title of the toolbar item.

```
var title: String { get set }
```

## Discussion

If you assign a custom view to the toolbar item, modifying this property updates the [`title`](/documentation/AppKit/NSToolbarItem/title) property of the view if one exists. If the toolbar item contains a button, modifying this property updates the button title. If the item doesn’t contain a custom view, the toolbar item manages the content directly.

> Note:
> In macOS 12 and earlier, ``doc://com.apple.appkit/documentation/AppKit/NSToolbarItem`` doesn’t support custom views in Mac apps built with Mac Catalyst.

---

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)