From f71c4cae3b21db506573bcdfa9fdb6cde41cc0ca Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 12 Dec 2023 12:58:38 -0800 Subject: Moved to new client/model separation so client can be used in other projects. Some UI tweaks. --- Hotline/Views/FilesView.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Hotline/Views/FilesView.swift') diff --git a/Hotline/Views/FilesView.swift b/Hotline/Views/FilesView.swift index 11db93c..23b19b1 100644 --- a/Hotline/Views/FilesView.swift +++ b/Hotline/Views/FilesView.swift @@ -2,7 +2,6 @@ import SwiftUI import UniformTypeIdentifiers struct FileView: View { -// @Environment(HotlineClient.self) private var hotline @Environment(Hotline.self) private var model: Hotline @State var expanded = false @@ -84,7 +83,6 @@ struct FileView: View { } struct FilesView: View { -// @Environment(HotlineClient.self) private var hotline @Environment(Hotline.self) private var model: Hotline @State var initialLoad = false @@ -125,5 +123,5 @@ struct FilesView: View { #Preview { FilesView() - .environment(HotlineClient()) + .environment(Hotline(trackerClient: HotlineTrackerClient(), client: HotlineClient())) } -- cgit