---
title: "init(contentViewController:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uipopovercontroller/init(contentviewcontroller:)"
---

# init(contentViewController:)

Returns an initialized popover controller object.

## Declaration

```swift
init(contentViewController viewController: UIViewController)
```

## Parameters

- `viewController`: The view controller for managing the popover’s content. This parameter must not be nil.

## Return Value

Return Value An initialized popover controller object.

## Discussion

Discussion When initializing a popover controller, you must specify the view controller object whose content is to be displayed in the popover. You can change this view controller later by modifying the contentViewController property.
