From c2235e4ec0227cb76951820afab2524e60fcdf38 Mon Sep 17 00:00:00 2001 From: eslam salem <50119388+Eslam-Salem@users.noreply.github.com> Date: Mon, 23 May 2022 02:16:43 +0200 Subject: [PATCH] fix ios 12 crash --- .../Helpers/Extensions/PHCachingImageManager+Extensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Helpers/Extensions/PHCachingImageManager+Extensions.swift b/Source/Helpers/Extensions/PHCachingImageManager+Extensions.swift index a120beb62..4aba1022c 100644 --- a/Source/Helpers/Extensions/PHCachingImageManager+Extensions.swift +++ b/Source/Helpers/Extensions/PHCachingImageManager+Extensions.swift @@ -91,7 +91,7 @@ extension PHCachingImageManager { options.isNetworkAccessAllowed = true // Get 2 results, one low res quickly and the high res one later. options.deliveryMode = .opportunistic - requestImage(for: asset, targetSize: PHImageManagerMaximumSize, + requestImage(for: asset, targetSize: CGSize(width: asset.pixelWidth, height: asset.pixelHeight), contentMode: .aspectFill, options: options) { result, info in guard let image = result else { ypLog("No Result 🛑")