FormPresentationSizing

The size is appropriate for forms and slightly less wide than.page

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

Declaration

React
type FormPresentationSizing = 'form';
Swift
struct FormPresentationSizing

Type properties

  • 'form'

Overview

On iOS, .form 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.