---
title: contentViewController
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopover/contentviewcontroller
---

# contentViewController

The view controller that manages the content of the popover.

## Declaration

```swift
@IBOutlet var contentViewController: NSViewController? { get set }
```

## Discussion

Discussion You must set the content view controller of the popover before the popover is shown. Changes to the popover’s content view controller while the popover is shown will cause the popover to animate if the animates property is true. The default value is nil.
