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

# view

Sets the view associated with the receiver to view.

## Declaration

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

## Discussion

Discussion This is the view displayed when a user clicks the tab. When you set a new view, the old view is released.
