Initial Commit

This commit is contained in:
Markus Thielker 2025-01-15 23:57:12 +01:00
commit 7ef8682e26
No known key found for this signature in database
14 changed files with 870 additions and 0 deletions

View file

@ -0,0 +1,32 @@
//
// passwordApp.swift
// password
//
// Created by Markus Thielker on 15.01.25.
//
import SwiftUI
import SwiftData
@main
struct passwordApp: 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)
}
}