Initial commit for first version of project

This commit is contained in:
Dennis Nemec
2026-09-02 20:54:36 +02:00
parent 3d9f1ab6bc
commit 992bb32025
56 changed files with 5139 additions and 31 deletions

View File

@ -6,35 +6,16 @@
//
import SwiftUI
import RealityKit
struct ContentView : View {
import SwiftData
struct ContentView: View {
var body: some View {
RealityView { content in
// Create a cube model
let model = Entity()
let mesh = MeshResource.generateBox(size: 0.1, cornerRadius: 0.005)
let material = SimpleMaterial(color: .gray, roughness: 0.15, isMetallic: true)
model.components.set(ModelComponent(mesh: mesh, materials: [material]))
model.position = [0, 0.05, 0]
// Create horizontal plane anchor for the content
let anchor = AnchorEntity(.plane(.horizontal, classification: .any, minimumBounds: SIMD2<Float>(0.2, 0.2)))
anchor.addChild(model)
// Add the horizontal plane anchor to the scene
content.add(anchor)
content.camera = .spatialTracking
}
.edgesIgnoringSafeArea(.all)
ProjectListView()
.modelContainer(for: Project.self)
}
}
#Preview {
ContentView()
ProjectListView()
.modelContainer(PreviewSupport.container)
}