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

# popoverPresentationControllerShouldDismissPopover(_:)

Asks the delegate if the popover should be dismissed.

```
optional func popoverPresentationControllerShouldDismissPopover(_ popoverPresentationController: UIPopoverPresentationController) -> Bool
```

## Parameters

`popoverPresentationController`

The popover presentation controller that is managing the popover interface.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the popover should be dismissed or <doc://com.apple.documentation/documentation/Swift/false> if it should not.

## Discussion

The popover presentation controller calls this method in response to user-initiated attempts to dismiss the popover. It is not called when you dismiss the popover programmatically using the [`dismissModalViewControllerAnimated:`](/documentation/UIKit/UIViewController/dismissModalViewControllerAnimated:) method.

If you do not implement this method in your delegate, the default return value is assumed to be <doc://com.apple.documentation/documentation/Swift/true>.

---

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)