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

# view

The custom view you use to draw the toolbar item.

```
var view: NSView? { get set }
```

## Discussion

Many properties of [`NSToolbarItem`](/documentation/AppKit/NSToolbarItem) automatically forward changes to the associated custom [`NSView`](/documentation/AppKit/NSView) object, if the view has a property or accessor method with a matching name.

---

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)