PagePresentationSizing

The size is roughly the size of a page of paper, appropriate for informational or compositional content.

StructureiOS 18.0+macOS 15.0+tvOS 18.0+watchOS 11.0+visionOS 2.0+PagePresentationSizing in SwiftUI

Declaration

React
type PagePresentationSizing = 'page';
Swift
struct PagePresentationSizing

Type properties

  • 'page'

Overview

On iOS, .page sizing enforces a platform-defined floor for the vertical and horizontal dimensions. On macOS, no floor is enforced, however a maximum proposed height is derived from the presenter height. To achieve presentations outside of these bounds, see PresentationSizing.fitted or implement your own custom PresentationSizing.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Presentation.