<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WindowResizability/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18WindowResizabilityV9automaticACvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

The automatic window resizability.

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

## Discussion

When you use automatic resizability, SwiftUI applies a resizing
strategy that’s appropriate for the scene type:

- Windows from [`WindowGroup`](/documentation/SwiftUI/WindowGroup), [`Window`](/documentation/SwiftUI/Window), and [`DocumentGroup`](/documentation/SwiftUI/DocumentGroup)
  scene declarations use the [`contentMinSize`](/documentation/SwiftUI/WindowResizability/contentMinSize) strategy.
- A window from a [`Settings`](/documentation/SwiftUI/Settings) scene declaration uses the
  [`contentSize`](/documentation/SwiftUI/WindowResizability/contentSize) strategy.
- Windows on visionOS with a window style of [`volumetric`](/documentation/SwiftUI/WindowStyle/volumetric)
  use the [`contentSize`](/documentation/SwiftUI/WindowResizability/contentSize) strategy.

Automatic resizability is the default if you don’t specify another
value using the [`windowResizability(_:)`](/documentation/SwiftUI/Scene/windowResizability(_:)) scene modifier.

---

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)