---
title: "sizeThatFits(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/presentationsizingroot/sizethatfits(_:)"
---

# sizeThatFits(_:)

Asks the subview for its size.

## Declaration

```swift
func sizeThatFits(_ proposal: ProposedViewSize) -> CGSize
```

## Return Value

Return Value The size of the presentation’s content view given proposal
