RealityView content disappears when selecting Lock In Place on visionOS

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
  4. Select "Lock In Place"
  5. The cube disappears immediately

Expected: Cube remains visible after window is locked Actual: Cube disappears. Note: "Follow Me" does NOT reproduce this issue.

Minimal reproducible code:

struct ImmersiveView: View { 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!

Hi @Kunal07

Thanks for the focused repro, that's genuinely helpful.

Could selecting "Lock In Place" be causing the ImmersiveSpace to be dismissed, which is why the RealityView content vanishes? I'm not yet sure why this only reproduces under TestFlight and not when running locally from Xcode.

I'd greatly appreciate it if you could open a bug report. Please include a zipped copy of the minimal Xcode project that reproduces the issue and a reference to this forum post, and post the FB number back here once you do.

Bug Reporting: How and Why? has tips on creating your bug report.

RealityView content disappears when selecting Lock In Place on visionOS
 
 
Q