From 90f0480e6e9b84552acbc54c37c140ba5a7b3e9d Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 29 Nov 2021 18:06:43 +0100 Subject: [PATCH] fix(camera): Return proper exif when picking multiple images --- camera/ios/Plugin/CameraPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/ios/Plugin/CameraPlugin.swift b/camera/ios/Plugin/CameraPlugin.swift index 8cc124001..1dd8a1c69 100644 --- a/camera/ios/Plugin/CameraPlugin.swift +++ b/camera/ios/Plugin/CameraPlugin.swift @@ -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) {