One Logo Pool Ball
SwiftUI · IOS API REFERENCE

PresentationSizingRoot

struct · iOS 18.0+ · SDK 27.1

struct PresentationSizingRoot

A proxy to a view provided to the presentation with a defined presentation size.

Members (1)

method · iOS 18.0+

sizeThatFits

TypeScript
sizeThatFits(proposal: _SwiftUICore_ProposedViewSize): { width: number; height: number }
Swift declaration
func sizeThatFits(_ proposal: ProposedViewSize) -> CGSize

Asks the subview for its size. - Returns: the size of the presentation's content view given `proposal`

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →