auth and projects

This commit is contained in:
vadim committed 2026-10-29 13:14:46 +03:00
1 parent 558bb005f4
commit 0ba2db0ec2
14 files changed
+1207 -94

No files matched your search

+3 -15
View File
@@ -6,27 +6,15 @@
//
import SwiftUI
import SwiftData
@main
struct SnailApp: 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)")
}
}()
@State private var auth = AuthStore()
var body: some Scene {
WindowGroup {
ContentView()
RootView()
.environment(auth)
}
.modelContainer(sharedModelContainer)
}
}