aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2023-12-08 10:04:55 -0800
committerDustin Mierau <dustin@mierau.me>2023-12-08 10:04:55 -0800
commit537ed932a4c8d639089f276e322de4e946b0d26b (patch)
tree1d3604a5f777be87f2d3d405ddfe5725c687b99f /Hotline/Views
parent767eb58da13d83aa321fff12c97fe433cd8fa734 (diff)
Starting to move to async/await model so the client code is no longer burdoned by observation and isn't bound to this app.
Diffstat (limited to 'Hotline/Views')
-rw-r--r--Hotline/Views/TrackerView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Hotline/Views/TrackerView.swift b/Hotline/Views/TrackerView.swift
index c8d0f2e..1c61cf4 100644
--- a/Hotline/Views/TrackerView.swift
+++ b/Hotline/Views/TrackerView.swift
@@ -7,9 +7,12 @@ struct TrackerView: View {
@Environment(HotlineState.self) private var appState
@Environment(HotlineClient.self) private var hotline
- @Environment(HotlineTrackerClient.self) private var tracker
+ @Environment(HotlineTrackerClient.self) private var trackerClient
+ @Environment(Hotline.self) private var model: Hotline
@Environment(\.colorScheme) var colorScheme
+// @State private var tracker = Tracker(address: "hltracker.com", service: trackerService)
+
@State private var selectedServer: HotlineServer?
@State var scrollOffset: CGFloat = CGFloat.zero
@@ -32,7 +35,6 @@ struct TrackerView: View {
case .loggingIn:
return 0.5
case .loggedIn:
-
return 1.0
}
}