Replace default views with basic layout

This commit is contained in:
Markus Thielker 2025-01-16 00:12:05 +01:00
parent e3deae28c6
commit 5e05d2f0ed
No known key found for this signature in database
5 changed files with 42 additions and 93 deletions

View file

@ -6,27 +6,12 @@
//
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()
ListView(viewModel: ListViewModel())
}
.modelContainer(sharedModelContainer)
}
}