From b99219f16792be4a06a89f1f32a59f0bf97bba68 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 5 Dec 2023 15:57:27 -0800 Subject: Experimenting with files. --- Hotline/Views/FilesView.swift | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'Hotline/Views/FilesView.swift') diff --git a/Hotline/Views/FilesView.swift b/Hotline/Views/FilesView.swift index 0e1bb91..d910af2 100644 --- a/Hotline/Views/FilesView.swift +++ b/Hotline/Views/FilesView.swift @@ -6,15 +6,8 @@ struct FilesView: View { @State private var fetched = false var body: some View { - ScrollView { - VStack(spacing: 0) { - List(hotline.userList) { u in - HStack(alignment: .firstTextBaseline) { - Text(u.name).bold().foregroundStyle(u.isAdmin ? Color.red : Color.black) - } - } - .padding() - } + List(hotline.fileList) { + FileListView(item: $0) } .task { if !fetched { -- cgit