previews_diagnostics_summary.txt
Post
Replies
Boosts
Views
Activity
Hi again everyone,
I searched through the documentation and found that the content in RealityView can be of type RealityViewContent for visionOS or RealityViewCameraContent for iOS and macOS. The latter has a camera property that can be set to virtual. Here's the code I came up with.
import SwiftUI
import RealityKit
struct ContentView: View {
var body: some View {
RealityView { content in
content.camera = .virtual
}
}
}
This sets the camera mode to virtual, which I believe should disable AR features. However, since this is a beta version and the documentation isn't entirely clear, I’m not completely sure if this is the right solution, so please don't rely solely on my code.
Thanks again everyone!