Show file list and contents

This commit is contained in:
Christoph Hagen
2024-12-05 09:17:33 +01:00
parent c3309197c0
commit f2d78aef93
8 changed files with 220 additions and 18 deletions

View File

@ -0,0 +1,26 @@
import SwiftUI
struct FileDetailView: View {
@ObservedObject
var file: FileResource
var body: some View {
VStack(alignment: .leading) {
Text("File Name")
.font(.headline)
TextField("", text: $file.uniqueId)
.textFieldStyle(.roundedBorder)
.padding(.bottom)
.disabled(true)
Text("Description")
.font(.headline)
TextField("", text: $file.description)
.textFieldStyle(.roundedBorder)
}.padding()
}
}
#Preview {
FileDetailView(file: .mock)
}