[vOS2.0beta4] Compositor content always behind SwiftUI windows

Hi there,

My app uses the .mixed immersion mode with an ImmersiveSpace rendering metal content into a compositor frame while also using Windows for SwiftUI content. In the screenshot below, you can see a red outline rendered in Metal, note that that the SwiftUI content is always rendered on top, even though the depth of the plane is behind the depth of the metal content.

Is this behaving as expected or should I be hunting for a bug in my code?

Thank you!

[vOS2.0beta4] Compositor content always behind SwiftUI windows
 
 
Q