-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
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
Load URL direct #230
Comments
My working code like this, using Kingfisher 5.0import Kingfisher
// ...
let imgView = UIImageView()
let galleryItem = GalleryItem.image { imageCompletion in
let pictureURL = URL(string: message.pictureURL)
imgView.kf.setImage(with: pictureURL, options: nil) { result in
guard let image = try? result.get().image else {
return
}
imageCompletion(image)
}
}
self.items.append(DataItem(imageView: imgView, galleryItem: galleryItem)) |
@KevinLiou your code seem load all image url before push to gallery show, sorry for my bad question, does it cause delay before present galleryVC ? |
NO, because the picture files are downloaded asynchronously :) |
thanks, your code help me a lot |
is it possible to load image using URL instead of download to UIImageView first ?
The text was updated successfully, but these errors were encountered: