---
title: popoverPresentationController
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiviewcontroller/popoverpresentationcontroller
---

# popoverPresentationController

The nearest popover presentation controller that is managing the current view controller.

## Declaration

```swift
var popoverPresentationController: UIPopoverPresentationController? { get }
```

## Mentioned in

Getting the user’s attention with alerts and action sheets

## Discussion

Discussion If the view controller or one of its ancestors is managed by a popover presentation controller, this property contains that object. This property is nil if the view controller is not managed by a popover presentation controller. If you created the view controller but have not yet presented it, accessing this property creates a popover presentation controller when the value in the modalPresentationStyle property is UIModalPresentationStyle.popover. If the modal presentation style is a different value, this property is nil.

## See Also

### Adding a custom transition or presentation

- [transitioningDelegate](uikit/uiviewcontroller/transitioningdelegate.md)
- [transitionCoordinator](uikit/uiviewcontroller/transitioncoordinator.md)
- [targetViewController(forAction:sender:)](uikit/uiviewcontroller/targetviewcontroller(foraction:sender:).md)
- [presentationController](uikit/uiviewcontroller/presentationcontroller.md)
- [sheetPresentationController](uikit/uiviewcontroller/sheetpresentationcontroller.md)
- [activePresentationController](uikit/uiviewcontroller/activepresentationcontroller.md)
- [restoresFocusAfterTransition](uikit/uiviewcontroller/restoresfocusaftertransition.md)
- [Customizing and resizing sheets in UIKit](uikit/customizing-and-resizing-sheets-in-uikit.md)
