// // TodosApp.swift // Todos // // Created by Sam Jaffe on 2/28/26. // import SwiftUI import SwiftData struct UserDefaultsKeys { private static let root = "leumasjaffe.Todos" static let UrlHints = root + ".URLHints" } @main struct TodosApp: App { var sharedModelContainer: ModelContainer = { let schema = Schema([ Category.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) #if os(macOS) Settings { SettingsView() } #endif } }