Skip to content

Commit

Permalink
Merge pull request Yummypets#745 from Eslam-Salem/master
Browse files Browse the repository at this point in the history
fix ios 12 crash
  • Loading branch information
NikKovIos authored May 25, 2022
2 parents f335418 + c2235e4 commit 74b395a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 🛑")
Expand Down

0 comments on commit 74b395a

Please sign in to comment.