UIModalPresentationStyle.formSheet
A presentation style that displays the content centered in the screen.
Declaration
case formSheetDiscussion
In a regular-width, regular-height size class, the system adds a layer with a Liquid Glass effect over the background content and centers the view controller’s content on top of this layer. The default content size is smaller than that of the UIModalPresentationStyle.pageSheet style. A part of the background content always remains visible.
To provide a custom content size, use the modal view controller’s preferredContentSize property.
In a compact-width, regular-height size class, the system displays the view controller as a sheet with part of the background content visible near the top of the screen.
In a compact-height size class, the behavior is the same as UIModalPresentationStyle.fullScreen.
Where the background content remains visible, the system doesn’t call the presenting view controller’s viewWillDisappear(_:) and viewDidDisappear(_:) methods.
See Also
Presentations
UIModalPresentationStyle.automaticUIModalPresentationStyle.noneUIModalPresentationStyle.fullScreenUIModalPresentationStyle.pageSheetUIModalPresentationStyle.currentContextUIModalPresentationStyle.customUIModalPresentationStyle.overFullScreenUIModalPresentationStyle.overCurrentContextUIModalPresentationStyle.popoverUIModalPresentationStyle.blurOverFullScreen