diff options
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 |