This restriction causes me to be unable to use Metal to create images and simultaneously use Swift to add UI controls or RealityKit content (without using a window) in immersive mode.
Can't use CompositorServices and realitykit simultaneously in the same immersiveSpace.
Hi @_rdy
You are correct that RealityKit content is not compatible with Compositor Services in the same immersive scene. You can use SwiftUI and Compositor Services in the same application as long as your SwiftUI content is in a separate window, but as you have pointed out this is inconvenient. This means you cannot use attachments to place SwiftUI widgets in a Compositor Services scene the way can in a RealityKit scene (RealityView
).
Please file a feature request via Feedback Assistant. Thank you!