---
title: title
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbaritem/title
---

# title

The title of the toolbar item.

## Declaration

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

## Discussion

Discussion If you assign a custom view to the toolbar item, modifying this property updates the 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, NSToolbarItem doesn’t support custom views in Mac apps built with Mac Catalyst.

## See Also

### Describing the item

- [possibleLabels](appkit/nstoolbaritem/possiblelabels.md)
- [label](appkit/nstoolbaritem/label.md)
- [paletteLabel](appkit/nstoolbaritem/palettelabel.md)
- [toolTip](appkit/nstoolbaritem/tooltip.md)
