Skip to content

Commit

Permalink
fix(camera): Return proper exif when picking multiple images (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Nov 29, 2021
1 parent fc79c43 commit 8451237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camera/ios/Plugin/CameraPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ extension CameraPlugin: PHPickerViewControllerDelegate {
img.itemProvider.loadObject(ofClass: UIImage.self) { [weak self] (reading, _) in
if let image = reading as? UIImage {
var asset: PHAsset?
if let assetId = result.assetIdentifier {
if let assetId = img.assetIdentifier {
asset = PHAsset.fetchAssets(withLocalIdentifiers: [assetId], options: nil).firstObject
}
if let processedImage = self?.processedImage(from: image, with: asset?.imageData) {
Expand Down

0 comments on commit 8451237

Please sign in to comment.