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