this repo has no description
1//
2// AtProtoBackupApp.swift
3// AtProtoBackup
4//
5// Created by Corey Alexander on 8/25/25.
6//
7
8import SwiftUI
9import SwiftData
10#if os(iOS)
11import ActivityKit
12#endif
13
14@main
15struct AtProtoBackupApp: App {
16 #if os(iOS)
17 @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
18 #endif
19
20 init() {
21 #if os(iOS)
22 // Initialize Live Activity permissions check
23 Task {
24 await LiveActivityManager.shared.checkActivityPermissions()
25 }
26 #endif
27 }
28
29 var sharedModelContainer: ModelContainer = {
30 let schema = Schema([
31 Account.self,
32 ])
33 let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: true)
34
35 do {
36 return try ModelContainer(for: schema, configurations: [modelConfiguration])
37 } catch {
38 fatalError("Could not create ModelContainer: \(error)")
39 }
40 }()
41
42 var body: some Scene {
43 WindowGroup {
44 ContentView()
45 }
46 .modelContainer(sharedModelContainer)
47 }
48}