Skip to content

Commit

Permalink
Handle jpeg and png UTType properly
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Ringenbach <[email protected]>
  • Loading branch information
aringenbach committed Feb 4, 2022
1 parent c5253cf commit f5eac5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ private class ShareExtensionItem: ShareItemProtocol {
}

var type: ShareItemType {
if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.image.rawValue) {
if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.image.rawValue)
|| itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.jpeg.rawValue)
|| itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.png.rawValue) {
return .image
} else if itemProvider.hasItemConformingToTypeIdentifier(MXKUTI.video.rawValue) {
return .video
Expand Down
1 change: 1 addition & 0 deletions changelog.d/3636.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Share: Handle jpeg and png UTType properly

0 comments on commit f5eac5d

Please sign in to comment.