From 8451237e46f24c59e74e350eaa9b31e6d99a68a0 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 29 Nov 2021 19:28:00 +0100 Subject: [PATCH] fix(camera): Return proper exif when picking multiple images (#712) --- 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) {