Post

Replies

Boosts

Views

Activity

Reply to SceneKit or RealityKit for Non-AR Game Development
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!
Topic: Graphics & Games SubTopic: RealityKit Tags:
Jun ’24
Reply to Liquid Glass Interaction Bug
Thanks for your reply. Yes, the issue is present in a minimal test project. Here is the full code to demonstrate the bug: import SwiftUI @main struct BugDemoApp: App { var body: some Scene { WindowGroup { NavigationStack { List { } .toolbar { ToolbarItem(placement: .bottomBar) { Button { } label: { Image(systemName: "apple.logo") } } } } } } } This behavior is also visible in system apps, for example in Notes and Reminders.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25