Questions tagged [kingfisher]

A lightweight, pure-Swift library for downloading and caching images from the web.

A lightweight, pure-Swift library for downloading and caching images from the web.

184 questions
2
votes
1 answer

Kingfisher: No such module 'CommonCrypto'

I have installed the latest version of Kingfisher i.e. pod 'Kingfisher', '~> 5.0', yet when I try to build my project I am receiving the following compile error: No such module 'CommonCrypto' String+MD5.swift I have no idea why this error is…
Hudi Ilfeld
  • 1,905
  • 2
  • 16
  • 25
2
votes
5 answers

Kingfisher: Ambiguous use of 'setBackgroundImage(with:for:placeholder:options:progressBlock:completionHandler:)'

I've been trying to use Kingfisher to set the background image of a button, but I'm getting a swift compiler error: Ambiguous use of 'setBackgroundImage(with:for:placeholder:options:progressBlock:completionHandler:)' What about this expression…
rma
  • 1,853
  • 1
  • 22
  • 42
2
votes
2 answers

Show updated images in the same url using Kingfisher ios

I am using Kingfisher for loading image view with images from Url. Sometimes, the same url will updated with new image. So I am using below code to load the imageview, profileImage.kf.setImage(with: profileUrl, placeholder:…
RP89
  • 101
  • 3
  • 13
2
votes
1 answer

Cancel single image download with Kingfisher

I am using kingfisher for downloading a single image with one of these methods KingfisherManager.shared.retrieveImage or ImageDownloader.default.downloadImage My question is how can I cancel the current download so I can start another one? I don't…
Faisal Alneela
  • 166
  • 2
  • 8
2
votes
2 answers

Placeholder image as Thumbnail(blurred) until actual image loads

I have below code for showing full screen image once User selects it. fullImage.kf.setImage(with: url) During the time the actual image downloads, I wanted to show a place holder as the same image but thumbnail size stretched out. This thumbnail…
Guna
  • 338
  • 6
  • 17
2
votes
1 answer

How to set indicatorType during setBackgroundImage for UIButton using Kingfisher

In Kingfisher documentation there is information about setting indicatorType when set image for regular imageView: imageView.kf.indicatorType = .activity imageView.kf.setImage(with: url) But how to set indicatorType when set background…
2
votes
3 answers

Kingfisher check for 404 status

I'm using the following call to download an image using KingFisher. This works fine but the problem is that sddefault.jpg is not available on all the videos and I have to use instead hqdefault.jpg. I get a 404 status from the server but how do I…
M1X
  • 4,971
  • 10
  • 61
  • 123
2
votes
2 answers

Kingfisher image loading error

I have a problem I hope you can help solve. I am using Kingfisher in my app, and it is wonderful. In my main user search tableview, it loads and caches images perfectly. But oddly when I try to cache images in another tableview, where the images are…
Randy Windin
  • 187
  • 2
  • 12
2
votes
1 answer

Does Kingfisher support video caching?

I've scoured both the Kingfisher docs and Stack Overflow, and there is no clear answer to whether Kingfisher supports video caching. I'm new to caching videos/images in general, so if someone could expand on (1) whether caching videos with…
joe
  • 267
  • 3
  • 8
2
votes
2 answers

IOS remove cache when leaving controller - kingfisher

I use kingfisher to load pictures from urls in a tableview. In my controller I have a tableview to display the pictures, a "next" button to reload tableview with new pictures, and a "home" button to go from this view controller to the home view…
Alex9494
  • 1,588
  • 3
  • 12
  • 22
2
votes
0 answers

Swift KingFisher - How to display picture from google storage

I use Kingfisher with swift 3, I displayed my pictures hosted in a directory on my apache server. I just changed for Google Cloud Plateform, and my picture are hosted now in Google Cloud Storage, but I cannot retrieve my picture anymore, the link…
Anthony
  • 73
  • 1
  • 2
  • 6
2
votes
1 answer

How to set max period on image in cache and clear expired items manually using Kingfisher(or AlamofireImage)?

I would like to use multiple cache scenarios for multiple groups like: 1-this image group should exist refresh every 60 seconds. 2-this image group should exist forever unless memory warning occurs. I don't know how to implement multiple cache…
Emran
  • 79
  • 1
  • 11
2
votes
1 answer

Kingfisher Multiple Parallel Image Download

I have array with image urls and I need to download all images, add all of them to array before passing to view. I am using that snippet for downloading single image var images: [UIImage] = [] ImageDownloader.default.downloadImage(with: URL(string:…
mTuran
  • 1,846
  • 4
  • 32
  • 58
2
votes
3 answers

Kingfisher and swift 3 - cannot set image with url

Checking the documentation and the migration guide, I should be able to set a new image using this code: imageView.kf.setImage(with:url ...) but actually I cannot find this method in the library, I only see:…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
2
votes
2 answers

Kingfisher cache image to disk

for url in status.storedPicURLS! { group.enter() print("\(status.storedPicURLS)") KingfisherManager.shared.downloader.downloadImage(with: url, options: nil, progressBlock: nil, completionHandler: { (image, _, _,…
duguyihou
  • 33
  • 3
  • 9