We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`func image(size: CGSize, resultClosure: @escaping (UIImage?)->()) -> PHImageRequestID { let requestSize = CGSize(width: size.width * UIScreen.main.scale, height: size.height * UIScreen.main.scale)
let options = PHImageRequestOptions() options.isNetworkAccessAllowed = true options.deliveryMode = .fastFormat return PHCachingImageManager.default().requestImage( for: self, targetSize: requestSize, contentMode: .aspectFill, options: options, resultHandler: { image, info in DispatchQueue.main.async { // add this resultClosure(image) // called for every quality approximation } } ) }`
and also don't use geometry reader for getting cell size, because it's kill performance too, you should got cell size from UIScreen.main.bounds
The text was updated successfully, but these errors were encountered:
No branches or pull requests
`func image(size: CGSize, resultClosure: @escaping (UIImage?)->()) -> PHImageRequestID {
let requestSize = CGSize(width: size.width * UIScreen.main.scale, height: size.height * UIScreen.main.scale)
and also don't use geometry reader for getting cell size, because it's kill performance too, you should got cell size from UIScreen.main.bounds
The text was updated successfully, but these errors were encountered: