Skip to content

Commit

Permalink
fix ios 12 crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Salem authored May 23, 2022
1 parent 3d37d04 commit c2235e4
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 c2235e4

Please sign in to comment.