aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views/FileListView.swift
blob: a3157570b2dc2a874cbe8bf825d00aa9217469eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import SwiftUI

struct FileListView: View {
  @State var files: [HotlineFile]
  
  var body: some View {
    Text("HI")
//    @Bindable var fls = files
//    List {
//      ForEach($fls, id: \.self) { f in
//        if f.isFolder {
//          DisclosureGroup(f.name, isExpanded: false)
//        }
//        else {
//          Text("HELLO")
//        }
//      }
//    }
  }
}

#Preview {
  FileListView(files: [
    HotlineFile(type: "fldr", creator: "", fileSize: 0, fileName: "Folder")
  ])
}