Fixed the issue, within the content view comment out the preview and replace with the PreviewProvider extension "//
// ContentView.swift
// ObjectCapture
//
// Created by koreadeep32 on 2023/06/09.
//
import SwiftUI
import RealityKit
struct ContentView: View {
var body: some View {
ObjectCapture()
}
}
// This is the part you comment out
//#Preview {
// ContentView()
//}
// This is the part you add
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}"