Add more file types

This commit is contained in:
Christoph Hagen 2025-01-07 10:33:04 +01:00
parent 216d99ef85
commit 1f7167b076

View File

@ -69,6 +69,8 @@ enum FileType: String {
case ttf case ttf
case ico
// MARK: Text // MARK: Text
case json case json
@ -77,6 +79,8 @@ enum FileType: String {
case yaml case yaml
case txt
// MARK: Model // MARK: Model
case stl case stl
@ -149,9 +153,9 @@ enum FileType: String {
return .video return .video
case .mp3, .aac, .m4b, .m4a: case .mp3, .aac, .m4b, .m4a:
return .audio return .audio
case .js, .css, .ttf: case .js, .css, .ttf, .ico:
return .asset return .asset
case .json, .conf, .yaml: case .json, .conf, .yaml, .txt:
return .text return .text
case .html, .cpp, .swift: case .html, .cpp, .swift:
return .code return .code
@ -209,11 +213,4 @@ enum FileType: String {
return nil return nil
} }
} }
var isSvg: Bool {
guard case .svg = self else {
return false
}
return true
}
} }