---
title: intrinsicContentSize
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/uihostingcontrollersizingoptions/intrinsiccontentsize
---

# intrinsicContentSize

The hosting controller’s view automatically invalidate its intrinsic content size when its ideal size changes.

## Declaration

```swift
static let intrinsicContentSize: UIHostingControllerSizingOptions
```

## Discussion

Discussion Use this option when the hosting controller’s view is being laid out with Auto Layout. note: This option comes with a performance cost because it asks for the ideal size of the content using the unspecified size proposal.

## See Also

### Getting sizing options

- [preferredContentSize](swiftui/uihostingcontrollersizingoptions/preferredcontentsize.md)
