---
title: viewController
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssplitviewitem/viewcontroller
---

# viewController

The view controller that the split view item represents.

## Declaration

```swift
var viewController: NSViewController { get set }
```

## Discussion

Discussion Don’t set this property while adding the split view item to a split view controller. If you do, the system raises an exception.
