Post

Replies

Boosts

Views

Activity

Imported RealityKit but Cannot find 'Model3D' in scope
Xcode complains that Model3D is not in scope despite that RealityKit is imported. I have tried with Xcode 15 & beta 8 in vain. How can I resolve this issue? import SwiftUI import RealityKit struct ContentView: View { var body: some View { Model3D(named: "Robot-Drummer") { model in model .resizable() .aspectRatio(contentMode: .fit) } placeholder: { ProgressView() } } }
6
0
1.2k
Sep ’23