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