<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/NSHostingSizingOptions/maxSize",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22NSHostingSizingOptionsV7maxSizeACvpZ"
  },
  "title" : "maxSize"
}
-->

# maxSize

The hosting view creates and updates constraints that represent its
content’s maximum size.

```
static let maxSize: NSHostingSizingOptions
```

## Discussion

The constraints reflect the size that fits a proposal of
`width: infinity, height: infinity`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)