swiftui layout
Asked on 06/15/2025
2 searches
At WWDC 2025, Apple introduced several enhancements to SwiftUI, particularly focusing on spatial layout capabilities. The session titled "Meet SwiftUI spatial layout" delves into these new features, which allow developers to create 3D experiences using SwiftUI on VisionOS. This includes using existing 2D layout tools and concepts to build 3D applications, with support for animations, resizing, and state management.
Key topics covered in the session include:
- 3D Views: SwiftUI now supports 3D views, allowing developers to build applications with depth, alignments, and rotations. This is particularly useful for creating immersive experiences on VisionOS.
- Depth Alignments: New depth-based variants of modifiers enable volumetric layouts directly in SwiftUI, enhancing the ability to create spatial experiences.
- Rotation Layout: The rotation 3D layout modifier allows for rotating views within the layout system, providing more flexibility in how content is presented.
- Spatial Containers: These are used to align views in the same 3D space, making it easier to manage complex layouts.
For more detailed information, you can watch the session Meet SwiftUI spatial layout (02:47) which covers 3D views and other related topics.

Meet SwiftUI spatial layout
Explore new tools for building spatial experiences using SwiftUI. Learn the basics of 3D SwiftUI views on visionOS, customize existing layouts with depth alignments, and use modifiers to rotate and position views in space. Discover how to use spatial containers to align views in the same 3D space, helping you create immersive and engaging apps.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.

What’s new in visionOS 26
Explore exciting new features in visionOS 26. Discover enhanced volumetric APIs and learn how you can combine the power of SwiftUI, RealityKit and ARKit. Find out how you can build more engaging apps and games using faster hand tracking and input from spatial accessories. Get a sneak peek at updates to SharePlay, Compositor Services, immersive media, spatial web, Enterprise APIs, and much more.