Skip to content

Commit

Permalink
feat: Add 3d model
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu-dgl committed Feb 25, 2025
1 parent 9c9413e commit f8760f3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 11 additions & 6 deletions kDriveCore/Data/Models/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ public enum ConvertedType: String, CaseIterable {
case archive
case audio
case code
case email
case folder = "dir"
case font
case form
case image
case mail
case model
case pdf
case presentation
case spreadsheet
Expand All @@ -53,6 +54,8 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesAsset.fileAudio.image
case .code:
return KDriveResourcesAsset.fileCode.image
case .email:
return KDriveResourcesAsset.file3dmodel.image
case .folder:
return KDriveResourcesAsset.folderFilled.image
case .font:
Expand All @@ -61,8 +64,8 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesAsset.fileForm.image
case .image:
return KDriveResourcesAsset.fileImage.image
case .mail:
return KDriveResourcesAsset.fileMail.image
case .model:
return KDriveResourcesAsset.file3dmodel.image
case .pdf:
return KDriveResourcesAsset.filePdf.image
case .presentation:
Expand Down Expand Up @@ -113,7 +116,7 @@ public enum ConvertedType: String, CaseIterable {
return KDriveResourcesStrings.Localizable.allOfficeGrids
case .text:
return KDriveResourcesStrings.Localizable.allOfficeDocs
case .unknown, .url, .font, .mail:
case .unknown, .url, .font, .email, .model:
return ""
case .video:
return KDriveResourcesStrings.Localizable.allVideo
Expand All @@ -130,6 +133,8 @@ public enum ConvertedType: String, CaseIterable {
return .audio
case .code:
return .sourceCode
case .email:
return .emailMessage
case .folder:
return .folder
case .font:
Expand All @@ -138,8 +143,8 @@ public enum ConvertedType: String, CaseIterable {
return .data
case .image:
return .image
case .mail:
return .emailMessage
case .model:
return .threeDContent
case .pdf:
return .pdf
case .presentation:
Expand Down

0 comments on commit f8760f3

Please sign in to comment.