Add more file types
This commit is contained in:
parent
216d99ef85
commit
1f7167b076
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user