From 537ed932a4c8d639089f276e322de4e946b0d26b Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 8 Dec 2023 10:04:55 -0800 Subject: Starting to move to async/await model so the client code is no longer burdoned by observation and isn't bound to this app. --- Hotline/Views/TrackerView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Hotline/Views/TrackerView.swift') 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 } } -- cgit