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()
}
}
}