What are the new coordinate conversions in SwiftUI and RealityKit

Asked on 06/11/2025

1 search

In the recent WWDC sessions, Apple introduced new coordinate conversion capabilities in SwiftUI and RealityKit, which significantly enhance the integration between these frameworks.

  1. Unified Coordinate Conversion API: This API simplifies the process of moving views and entities between different scenes, even across SwiftUI, RealityKit, and ARKit coordinate spaces. This makes content positioning more straightforward when building applications that involve these frameworks (What’s new in visionOS 26).

  2. Coordinate Space 3D Protocol: This protocol allows for easy conversion of values between any two types that conform to the coordinate space 3D, even if they are from different frameworks. RealityKit's entity and scene types conform to this protocol, and on the SwiftUI side, geometryProxy3D has a new function to provide its coordinate space. This facilitates the conversion of view positions to points in entity space, taking into account details like points-to-meter conversion and axis direction (Better together: SwiftUI and RealityKit).

These enhancements make it easier to integrate and synchronize 3D content and interactions between SwiftUI and RealityKit, providing a more seamless development experience for creating spatial applications.