<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/WorldScalingBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20WorldScalingBehaviorV"
  },
  "title" : "WorldScalingBehavior"
}
-->

# WorldScalingBehavior

Specifies the scaling behavior a window should have within the world.

```
struct WorldScalingBehavior
```

## Overview

By default, a regular [`WindowGroup`](/documentation/SwiftUI/WindowGroup) uses a scaling behavior of
[`dynamic`](/documentation/SwiftUI/WorldScalingBehavior/dynamic), and a window with
[`volumetric`](/documentation/SwiftUI/WindowStyle/volumetric) has a fixed scale.

Dynamic scale means the window will scale larger as it moves further away,
maintaining the same angular size. Fixed scale means the window will keep
its physical size in the world.

For further information, see
<doc://com.apple.documentation/design/Human-Interface-Guidelines/spatial-layout>
in the Human Interface Guidelines.

## Topics

### Type Properties

[`static var automatic: WorldScalingBehavior`](/documentation/SwiftUI/WorldScalingBehavior/automatic)

The scaling behavior that is standard for the window’s style.

[`static var dynamic: WorldScalingBehavior`](/documentation/SwiftUI/WorldScalingBehavior/dynamic)

The window will scale up as it moves further away, maintaining the same
angular size.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

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)