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

@ -14,3 +14,22 @@ final class FileResource: ObservableObject {
self.description = description
}
}
extension FileResource: Identifiable {
var id: String { uniqueId }
}
extension FileResource: Equatable {
static func == (lhs: FileResource, rhs: FileResource) -> Bool {
lhs.uniqueId == rhs.uniqueId
}
}
extension FileResource: Hashable {
func hash(into hasher: inout Hasher) {
hasher.combine(uniqueId)
}
}