Skip to content

Commit 1a55b68

Browse files
committed
fix(ios): min ios version check
1 parent d5e93f0 commit 1a55b68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/ExifyUtils.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ func getExifTags(from metadata: NSDictionary) -> [String: Any] {
5656
// Include tags from formats
5757
addTagEntries(from: kCGImagePropertyTIFFDictionary, metadata: metadata, to: tags)
5858
addTagEntries(from: kCGImagePropertyPNGDictionary, metadata: metadata, to: tags)
59-
addTagEntries(from: kCGImagePropertyHEICSDictionary, metadata: metadata, to: tags)
59+
60+
if #available(iOS 13.0, *) {
61+
addTagEntries(from: kCGImagePropertyHEICSDictionary, metadata: metadata, to: tags)
62+
}
6063

6164
return tags as? [String: Any] ?? [:]
6265
}

0 commit comments

Comments
 (0)