Initial Commit
This commit is contained in:
commit
7ef8682e26
14 changed files with 870 additions and 0 deletions
32
password/passwordApp.swift
Normal file
32
password/passwordApp.swift
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue