<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPopoverPresentationControllerDelegate/prepareForPopoverPresentation(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIPopoverPresentationControllerDelegate(im)prepareForPopoverPresentation:"
  },
  "title" : "prepareForPopoverPresentation(_:)"
}
-->

# prepareForPopoverPresentation(_:)

Notifies the delegate that the popover is about to be presented.

```
optional func prepareForPopoverPresentation(_ popoverPresentationController: UIPopoverPresentationController)
```

## Parameters

`popoverPresentationController`

The popover presentation controller that is about to display the popover.

## Discussion

Use this method to perform any last minute customizations of the popover appearance and behavior. At the time this method is called, the popover is not yet on the screen. You can use this method to modify the configuration of the popover presentation controller or perform any other actions that your app requires.

---

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)