DomainDig/DomainDigApp.swift
24 lines · 498 bytes
1//
2// DomainDigApp.swift
3// DomainDig
4//
5// Created by cmc on 2026-03-10.
6//
7
8import SwiftUI
9
10@main
11struct DomainDigApp: App {
12 @AppStorage(AppDensity.userDefaultsKey) private var density = AppDensity.compact.rawValue
13
14 init() {
15 LocalNotificationService.shared.configureForegroundPresentation()
16 }
17
18 var body: some Scene {
19 WindowGroup {
20 ContentView()
21 .environment(\.appDensity, AppDensity(rawValue: density) ?? .compact)
22 }
23 }
24}