Add tag overview, improve assets

This commit is contained in:
Christoph Hagen
2024-12-15 21:20:12 +01:00
parent 8a3a0f1797
commit 1e67a99866
59 changed files with 1301 additions and 480 deletions

View File

@ -0,0 +1,34 @@
import SwiftUI
struct FilePropertyView: View {
let title: String
let description: String
@Binding
var selectedFile: FileResource?
@State
private var showFileSelectionSheet = false
var body: some View {
VStack(alignment: .leading) {
Text(title)
.font(.headline)
HStack {
Text(selectedFile?.id ?? "No file selected")
Spacer()
Button("Select") {
showFileSelectionSheet = true
}
}
Text(description)
.foregroundStyle(.secondary)
.padding(.bottom)
}
.sheet(isPresented: $showFileSelectionSheet) {
FileSelectionView(selectedFile: $selectedFile)
}
}
}