Contents

UIModalPresentationStyle.pageSheet

A presentation style that partially covers the underlying content.

Declaration

case pageSheet

Discussion

In a regular-width, regular-height size class, the system adds a dimming layer over the background content and centers the view controller’s content on top of this layer. The content is roughly the size of a page, where the height is greater than the width. The actual dimensions vary depending on several factors including the device’s screen size and orientation. A part of the background content always remains visible.

To provide a custom content size, use the UIModalPresentationStyle.formSheet style instead, and set 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