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
5
votes
1 answer

How to set image using Kingfisher when image url did not change but image changed

How to retrieve correct image using Kingfisher when image url did not change but image changed such as Twitter or GitHub. SDWebImage has a option [SDWebImageRefreshCached] to solve the problem. /** * Even if the image is cached, respect the…
ZhaoWei
  • 101
  • 1
  • 8
5
votes
2 answers

Kingfisher 3.0 iOS swift RoundCornerImageProcessor white background

This is the code that I am using to set the user image which works great to actually get and set the image. I get a white outline to the picture. Any idea how to make this transparent? let processor = RoundCornerImageProcessor(cornerRadius:…
ajonp
  • 111
  • 10
4
votes
1 answer

KingFisher 5.0 crashing with EXC_BAD_INSTRUCTION in Xcode 11.2

I got Xcode 11.2 (beta and stable releases) since I updated iOS to 13.2. I have been using KingFisher with no errors and Suddenly it crashes with the error Thread 1: EXC_BAD_INSTRUCTION (code=1, subcode=0x210007) in ImageDownloader line 169:…
Juanjo
  • 670
  • 7
  • 17
4
votes
3 answers

Issue with Kingfisher in Xcode11 - Could not find module 'Kingfisher' for target 'armv7-apple-ios'; found: arm64, arm64-apple-ios

Using Kingfisher 5.7.1, I am unable to import Kingfisher for one class only - a UIImageView extension. I can build for generic iOS device but if I try on a simulator or a device I get an import error. I am able to import in another class but one…
FSUWX2011
  • 355
  • 1
  • 3
  • 8
4
votes
2 answers

How can I place images in array which is downloaded by Kingfisher cache?

This is my Swift 3 code. I need to place the images into an array which is downloading through Kingfisher cache. Actually, the image is now displaying in the cell.itemImage, but I am not able to put those images to a UIImage array. Can anyone…
Wide Angle Technology
  • 1,184
  • 1
  • 8
  • 28
4
votes
4 answers

Set Image in imagePickerController with using Kingfisher

I want to set image to my UIImageView in imagePickerController with using Kingfisher but nothing happens. First i direct the user to the photo library. After the user selects the photo and comes back, i get the photo as UIImage and the an URL in…
AtaerCaner
  • 691
  • 7
  • 12
4
votes
2 answers

Round Image View getting with KingFisher (iOS - Swift)

Scenario: I have a @IBOutlet weak var posterImageView: UIImageView! that I'm showing on my tableView using Kingfisher (I have to use it). The image comes from an API. So, it's all right, the image is showing ok, but I want to show this image as a…
U23r
  • 1,653
  • 10
  • 28
  • 44
3
votes
0 answers

SwiftUI: KFImage, aspectRatio(), and layoutPriority()

I’m having some issues with KFImage. It works fine with the placeholder image, until the remote image is loaded. It seems to be some interaction between .aspectRatio() and .layoutPriority(-1). I have a kind of card with an image, and a couple text…
Rick
  • 3,298
  • 3
  • 29
  • 47
3
votes
0 answers

SwiftUI: Kingfisher KFImage flashing images within LazyHStack

KFImage within LazyHStask flashes image while dragging the view in spite of I set loadDiskFileSynchronously() to the view. I suspect that KFImage loads image every time its onAppear() called, and it makes image flashing. But it seems that KFImage…
Shota Ara
  • 31
  • 2
3
votes
2 answers

How to refresh a series of images cached by Kingfisher?

A previous question looked like it was asking a similar question but it wasn't answered. Can I just change the images on the server, keeping the same URL, and rely on HTTP 304 and other mechanisms to reload the new version of the image even if they…
Adam Eberbach
  • 12,309
  • 6
  • 62
  • 114
3
votes
1 answer

Image Caching – How to control when images are disposed?

I need to cache images on disk but to limit them say to 20 images. I am trying Nuke library. When I run Nuke.loadImage(with: url, options: options, into: imageView) image is cached as long as I am inside my View Controller. When I leave the views,…
RealNmae
  • 630
  • 9
  • 20
3
votes
1 answer

Concurrent queue with barrier task only

Recently I'm reading the codes of the popular image caching library Kingfisher. I'm confusing about the GCD usages on the ImageDownloader. In that downloader, all the ImageFetchLoad (task to fetch image) related operations are dispatched to a…
3
votes
3 answers

Kingfisher can't setImage for UIButton

code is: let url = URL(string: (user?.avatar)!)! print(url.absoluteString) let resource = ImageResource(downloadURL: url, cacheKey: "my_avatar") testUIButton.kf.setImage(with: resource, for:.normal) The result is testUIButton display…
Hayden
  • 449
  • 4
  • 13
3
votes
1 answer

Kingfisher caches the data in RAM

I do like a news feed, I had the following problem, if for example the user uploads more than 300 news, then the application will already occupy more than 300 megabytes of memory. Once during the test, I did get didReceiveMemoryWarning and it helped…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
3
votes
1 answer

How to apply blur to image and then cache it with Kingfisher?

I am trying to download an image from a URL, blur it, cache it and then display it in a table view cell. I did this: let resource = ImageResource(downloadURL: url, cacheKey: recipe.uid) backgroundImageView.kf.setImage(with:…
Toma Radu-Petrescu
  • 2,152
  • 2
  • 23
  • 57
1
2
3
12 13