<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/popoverPresentationController",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)popoverPresentationController"
  },
  "title" : "popoverPresentationController"
}
-->

# popoverPresentationController

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

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

## 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`](/documentation/UIKit/UIViewController/modalPresentationStyle) property is [`UIModalPresentationStyle.popover`](/documentation/UIKit/UIModalPresentationStyle/popover). If the modal presentation style is a different value, this property is `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)