---
title: "volumeWorldAlignment(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scene/volumeworldalignment(_:)"
---

# volumeWorldAlignment(_:)

Specifies how a volume should be aligned when moved in the world.

## Declaration

```swift
nonisolated func volumeWorldAlignment(_ behavior: WorldAlignmentBehavior) -> some Scene

```

## Discussion

Discussion For example, you can create a volume that remains parallel to the floor even when lifted up high above eye level by applying a gravityAligned alignment to the scene: @main struct MyApp: App {     var body: some Scene {         WindowGroup {             ContentView()         }         .windowStyle(.volumetric)         .volumeWorldAlignment(.gravityAligned)     } } The default value if you don’t apply the modifier is automatic. With that strategy, volumes will tilt themselves so the front remains fully visible while being repositioned.

## See Also

### Interacting with volumes

- [onVolumeViewpointChange(updateStrategy:initial:_:)](swiftui/view/onvolumeviewpointchange(updatestrategy:initial:_:).md)
- [supportedVolumeViewpoints(_:)](swiftui/view/supportedvolumeviewpoints(_:).md)
- [VolumeViewpointUpdateStrategy](swiftui/volumeviewpointupdatestrategy.md)
- [Viewpoint3D](swiftui/viewpoint3d.md)
- [SquareAzimuth](swiftui/squareazimuth.md)
- [WorldAlignmentBehavior](swiftui/worldalignmentbehavior.md)
- [WorldScalingBehavior](swiftui/worldscalingbehavior.md)
- [defaultWorldScaling(_:)](swiftui/scene/defaultworldscaling(_:).md)
- [WorldScalingCompensation](swiftui/worldscalingcompensation.md)
- [worldTrackingLimitations](swiftui/environmentvalues/worldtrackinglimitations.md)
- [WorldTrackingLimitation](swiftui/worldtrackinglimitation.md)
- [SurfaceSnappingInfo](swiftui/surfacesnappinginfo.md)
