aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views/FileListView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/Views/FileListView.swift')
-rw-r--r--Hotline/Views/FileListView.swift22
1 files changed, 22 insertions, 0 deletions
diff --git a/Hotline/Views/FileListView.swift b/Hotline/Views/FileListView.swift
new file mode 100644
index 0000000..852fce4
--- /dev/null
+++ b/Hotline/Views/FileListView.swift
@@ -0,0 +1,22 @@
+import SwiftUI
+
+struct FileListView: View {
+ var item: HotlineFile
+
+ var body: some View {
+ List {
+ ForEach(item.files) { f in
+ if f.isFolder {
+ DisclosureGroup(f.name, isExpanded: false)
+ }
+ else {
+ Text("HELLO")
+ }
+ }
+ }
+ }
+}
+
+#Preview {
+ FileListView(item: HotlineFile(type: "fldr", creator: "", fileSize: 0, fileName: "Folder"))
+}