Skip to content

Commit

Permalink
feat: ItemProvider underlyingType can return new type, propertyList.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Mar 20, 2024
1 parent 31c7519 commit 83e628a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public extension NSItemProvider {
case isDirectory
/// The item is a compressed file
case isCompressedData(identifier: String)
/// The item is a property list
case isPropertyList
/// The item is of a miscellaneous type
case isMiscellaneous(identifier: String)
/// This should not happen, no type identifier was found
Expand Down Expand Up @@ -93,6 +95,8 @@ public extension NSItemProvider {
return .isDirectory
} else if hasItemConformingToAnyOfTypeIdentifiers(Self.compressedUTIIdentifiers) {
return .isCompressedData(identifier: typeIdentifier)
} else if hasItemConformingToTypeIdentifier(UTI.propertyList.identifier) {
return .isPropertyList
} else {
return .isMiscellaneous(identifier: typeIdentifier)
}
Expand Down

0 comments on commit 83e628a

Please sign in to comment.