From 60a3f2d29dfff945f59787f5a7786c6e78ba7bb9 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 1 May 2024 21:22:18 -0700 Subject: New Hotline toolbar window for banner. --- Hotline/Sounds/Application-iOS.swift | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Hotline/Sounds/Application-iOS.swift (limited to 'Hotline/Sounds/Application-iOS.swift') 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 -- cgit