From 84aaa9ef0a1be6986e38d7e4f58e07d3cb84979e Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 8 Dec 2023 16:12:47 -0800 Subject: Move tracker client to async/await. TrackerView uses Model now. Fix string encodings for MacRoman and japanese. --- Hotline/HotlineApp.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Hotline/HotlineApp.swift') diff --git a/Hotline/HotlineApp.swift b/Hotline/HotlineApp.swift index 82fa7d4..67397a2 100644 --- a/Hotline/HotlineApp.swift +++ b/Hotline/HotlineApp.swift @@ -18,7 +18,6 @@ struct HotlineApp: App { @State private var appState = HotlineState() @State private var hotline = HotlineClient() - @State private var tracker = HotlineTrackerClient(tracker: HotlineTracker("hltracker.com")) private var model = Hotline(trackerClient: HotlineTrackerClient()) @@ -28,7 +27,8 @@ struct HotlineApp: App { TrackerView() .environment(appState) .environment(hotline) - .environment(tracker) +// .environment(tracker) + .environment(model) } // .modelContainer(sharedModelContainer) } -- cgit