RealityView content disappears when selecting Lock In Place on visionOS

Hi,

I'm experiencing an issue where all RealityView content disappears when the user selects "Lock In Place" from the window management menu (long press on close button). "Follow Me" works correctly and this happens in Testflight builds only not reproducible when I run locally

I have reproduced this with a minimal project containing nothing but a simple red cube — no custom anchors, no app state, no dependencies.

Steps to Reproduce:

  1. Open an ImmersiveSpace.
  2. A red cube is placed 1m in front of the user via RealityView.
  3. Long press the X button on any floating window

Select "Lock In Place". The cube disappears immediately.

Expected: Cube remains visible after window is locked

Actual: Cube disappears.

Minimal reproducible code:

    var body: some View {
        RealityView { content in
            let cube = ModelEntity(
                mesh: .generateBox(size: 0.3),
                materials: [SimpleMaterial(color: .red, isMetallic: false)]
            )
            cube.setPosition(SIMD3<Float>(0, 1.5, -1), relativeTo: nil)
            content.add(cube)
        }
    }
}

Device: Apple Vision Pro

visionOS version: Vision OS 26.2 (23N301)

Xcode version: Version 26.3 (17C529)

Is this a known issue? Is there a recommended workaround to preserve RealityView content during Lock In Place transitions?

Thank you!

RealityView content disappears when selecting Lock In Place on visionOS
 
 
Q