From 1f7167b07616ea04204e342e354f3872defecaec Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Tue, 7 Jan 2025 10:33:04 +0100 Subject: [PATCH] Add more file types --- CHDataManagement/Model/FileType.swift | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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 - } }