diff --git a/CHDataManagement/Model/FileType.swift b/CHDataManagement/Model/FileType.swift index da8d8ae..4e96315 100644 --- a/CHDataManagement/Model/FileType.swift +++ b/CHDataManagement/Model/FileType.swift @@ -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 - } }