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

# popoverControllerShouldDismissPopover(_:)

Asks the delegate if the popover should be dismissed.

```
optional func popoverControllerShouldDismissPopover(_ popoverController: UIPopoverController) -> Bool
```

## Parameters

`popoverController`

The popover controller to be dismissed.

## 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 remain visible.

## Discussion

This method is called in response to user-initiated attempts to dismiss the popover. It is not called when you dismiss the popover using the [`dismiss(animated:)`](/documentation/UIKit/UIPopoverController/dismiss(animated:)) method of the popover controller.

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)