Contents

UIModalPresentationStyle.popover

A presentation style where the content is displayed in a popover view.

Declaration

case popover

Discussion

In a horizontally regular environment, this style displays the view controller in a popover view. The background content is dimmed and taps outside the popover cause the popover to be dismissed. If you do not want taps to dismiss the popover, you can assign one or more views to the passthroughViews property of the associated UIPopoverPresentationController object, which you can get from the popoverPresentationController property.

In iOS 13 and later, for horizontally or vertically compact environments, this option behaves the same as UIModalPresentationStyle.formSheet.

In iOS 12 and earlier:

For more information about horizontal and vertical size classes, see UIUserInterfaceSizeClass.

See Also

Presentations