From dabeb1603cf146aa671dddf949788b514b983b76 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Tue, 28 Jul 2026 06:53:26 +0100 Subject: Initial Commit --- ShedCalc/ShedCalcApp.swift | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ShedCalc/ShedCalcApp.swift (limited to 'ShedCalc/ShedCalcApp.swift') diff --git a/ShedCalc/ShedCalcApp.swift b/ShedCalc/ShedCalcApp.swift new file mode 100644 index 0000000..4a5c6ff --- /dev/null +++ b/ShedCalc/ShedCalcApp.swift @@ -0,0 +1,32 @@ +// +// ShedCalcApp.swift +// ShedCalc +// +// Created by Jacky Jack on 28/07/2026. +// + +import SwiftUI +import SwiftData + +@main +struct ShedCalcApp: App { + var sharedModelContainer: ModelContainer = { + let schema = Schema([ + Item.self, + ]) + let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) + + do { + return try ModelContainer(for: schema, configurations: [modelConfiguration]) + } catch { + fatalError("Could not create ModelContainer: \(error)") + } + }() + + var body: some Scene { + WindowGroup { + ContentView() + } + .modelContainer(sharedModelContainer) + } +} -- cgit v1.2.3