23 lines
734 B
Swift
23 lines
734 B
Swift
// ── ChronoMind App Entry Point ─────────────────────────────────
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct ChronoMindApp: App {
|
|
@StateObject private var timerStore = TimerStore()
|
|
@StateObject private var notificationManager = CMNotificationManager.shared
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
.environmentObject(timerStore)
|
|
.environmentObject(notificationManager)
|
|
.preferredColorScheme(.dark)
|
|
.task {
|
|
notificationManager.registerCategories()
|
|
await notificationManager.requestPermission()
|
|
}
|
|
}
|
|
}
|
|
}
|