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

# view

The view displayed in the bar to represent this item.

## Declaration

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

## Discussion

Discussion By default, this property returns the value of view property from the view controller assigned to the viewController property. If you set the value of this property, then the viewController property is automatically set to nil.

## See Also

### Providing item content

- [viewController](appkit/nscustomtouchbaritem/viewcontroller.md)
