aboutsummaryrefslogtreecommitdiff
path: root/Hotline/iOSApp.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-10-20 22:15:48 -0700
committerDustin Mierau <dustin@mierau.me>2025-10-20 22:15:48 -0700
commitede41868962ffed386b0da694d14cdfe6cfdb34f (patch)
treef0b91edd1d9c1bbc23de525224b49d6f8e48e815 /Hotline/iOSApp.swift
parent77b3ac3c051fc4e8fa126cd21e261be28f4aad1a (diff)
Cleanup and a bunch of work to fix issues syncing, loading, and general bookmark states in TrackerView. Added search field (substring conjunctive filter on server/bookmark names and descriptions).
Diffstat (limited to 'Hotline/iOSApp.swift')
-rw-r--r--Hotline/iOSApp.swift18
1 files changed, 18 insertions, 0 deletions
diff --git a/Hotline/iOSApp.swift b/Hotline/iOSApp.swift
new file mode 100644
index 0000000..2fb6ad2
--- /dev/null
+++ b/Hotline/iOSApp.swift
@@ -0,0 +1,18 @@
+import SwiftUI
+import SwiftData
+import UniformTypeIdentifiers
+
+@main
+struct Application: App {
+ private var model = Hotline(trackerClient: HotlineTrackerClient(), client: HotlineClient())
+
+ @FocusedValue(\.activeHotlineModel) private var activeHotline: Hotline?
+ @FocusedValue(\.activeServerState) private var activeServerState: ServerState?
+
+ var body: some Scene {
+ WindowGroup {
+ TrackerView()
+ .environment(model)
+ }
+ }
+}