Improve display of results

This commit is contained in:
Christoph Hagen
2025-02-07 14:08:51 +01:00
parent 7ebc9d8404
commit dc7ab6fb15
7 changed files with 276 additions and 84 deletions

View File

@ -1,4 +1,5 @@
import Foundation
import SFSafeSymbols
enum FileTypeCategory: String, CaseIterable {
case image
@ -22,6 +23,19 @@ enum FileTypeCategory: String, CaseIterable {
case .audio: return "Audio"
}
}
var symbol: SFSymbol {
switch self {
case .image: .photo
case .code: .keyboard
case .model: .cubeTransparent
case .text: .docText
case .video: .video
case .resource: .docZipper
case .asset: .network
case .audio: .speakerWave2CircleFill
}
}
}
extension FileTypeCategory: Hashable {