diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-01 21:22:18 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-01 21:32:15 -0700 |
| commit | 60a3f2d29dfff945f59787f5a7786c6e78ba7bb9 (patch) | |
| tree | e3d0aa6ae541790ea700353b0ac01fe8b4950f9f /Hotline/Sounds/Application-iOS.swift | |
| parent | b9529a0d255ad41c62a4e3b93a47ebb5bb82a565 (diff) | |
New Hotline toolbar window for banner.
Diffstat (limited to 'Hotline/Sounds/Application-iOS.swift')
| -rw-r--r-- | Hotline/Sounds/Application-iOS.swift | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Hotline/Sounds/Application-iOS.swift b/Hotline/Sounds/Application-iOS.swift new file mode 100644 index 0000000..5d9c56d --- /dev/null +++ b/Hotline/Sounds/Application-iOS.swift @@ -0,0 +1,26 @@ +import SwiftUI +import SwiftData +import UniformTypeIdentifiers + +#if os(iOS) + +@main +struct Application: App { + private var model = Hotline(trackerClient: HotlineTrackerClient(), client: HotlineClient()) + + @State private var preferences = Prefs() + @State private var soundEffects = SoundEffectPlayer() + @State private var bookmarks = Bookmarks() + + @FocusedValue(\.activeHotlineModel) private var activeHotline: Hotline? + @FocusedValue(\.activeServerState) private var activeServerState: ServerState? + + var body: some Scene { + WindowGroup { + TrackerView() + .environment(model) + } + } +} + +#endif |