---
title: contentSize
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/windowresizability/contentsize
---

# contentSize

A window resizability that’s derived from the window’s content.

## Declaration

```swift
static var contentSize: WindowResizability { get set }
```

## Discussion

Discussion Windows that use this resizability have: A minimum size that matches the minimum size of the window’s content. A maximum size that matches the maximum size of the window’s content.

## See Also

### Getting the resizability

- [automatic](swiftui/windowresizability/automatic.md)
- [contentMinSize](swiftui/windowresizability/contentminsize.md)
