@sadaotokuyama I tried your code but all I'm getting is a spinning wheel against an opaque background in the midst of the "Content View" window.
import RealityKit
struct ContentView: View {
var body: some View {
Model3D(named: "room") { model in
model
.resizable()
.aspectRatio(contentMode:.fit)
.frame(width: 380)
} placeholder: {
ProgressView()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: