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
TypeScriptsizeThatFits(proposal: _SwiftUICore_ProposedViewSize): { width: number; height: number }
Swift declarationfunc 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 →