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

# automatic

The automatic window resizability.

## Declaration

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

## Discussion

Discussion When you use automatic resizability, SwiftUI applies a resizing strategy that’s appropriate for the scene type: Windows from WindowGroup, Window, and DocumentGroup scene declarations use the contentMinSize strategy. A window from a Settings scene declaration uses the contentSize strategy. Windows on visionOS with a window style of volumetric use the contentSize strategy. Automatic resizability is the default if you don’t specify another value using the windowResizability(_:) scene modifier.

## See Also

### Getting the resizability

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