RealityView camera feed not shown

You’re now watching this thread. If you’ve opted in to email or web notifications, you’ll be notified when there’s activity. Click again to stop watching or visit your profile to manage watched threads and notifications.
You’ve stopped watching this thread and will no longer receive emails or web notifications when there’s activity. Click again to start watching.
Created Jun ’25
Replies 3
Boosts 1
Views 1.1k
Participants 4

I have two RealityView: ParentView and When click the button in ParentView, ChildView will be shown as full screen cover, but the camera feed in ChildView will not be shown, only black screen.

If I show ChildView directly, it works with camera feed.

Please help me on this issue? Thanks.

import RealityKit
import SwiftUI

struct ParentView: View{
 @State private var showIt = false
 var body: some View{
 ZStack{
 RealityView{content in
 content.camera = .virtual
 let box = ModelEntity(mesh: MeshResource.generateSphere(radius: 0.2),materials: [createSimpleMaterial(color: .red)])
 content.add(box)

 
 }
 Button("Click here"){
 showIt = true
 }
 }
 .fullScreenCover(isPresented: $showIt){
 
 ChildView()
 
 .overlay(
 Button("Close"){
 showIt = false
 }.padding(20),
 alignment: .bottomLeading
 )
 }
 .ignoresSafeArea(.all)
 }
}
import ARKit
import RealityKit
import SwiftUI
struct ChildView: View{
 var body: some View{
 RealityView{content in 
 content.camera = .spatialTracking
 }

 }
}
Share this post
Copied to Clipboard
Replies  3
Boosts  1
Views  1.1k
Participants  4

Same issue here, but while using Navigation Stack and navigating to a child path. Did you ever find a workaround?

0
Share this post
Copied to Clipboard

RealityView camera feed not shown

0
Share this post
Copied to Clipboard
Vision Pro Engineer OP
Apple
2d

Hey @joycode / @mcdopsa / @Sebalafiera201,

Have any of you filed a bug report for this issue? Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a sample project that replicates the issue, and post the FB number here once you do.

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

Thanks!
Michael

1
Share this post
Copied to Clipboard
RealityView camera feed not shown
First post date Last post date
Q