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.

163 questions
43
votes
7 answers

Get UIImage only with Kingfisher library

I need to get a UIImage only instead of loading a normal UIImageView with Kingfisher library To realize it I implemented a workaround with UIImageView: let imageView = UIImageView() imageView.kf_setImageWithURL(NSURL(string: cpa.imageName)!,…
Patonz
  • 754
  • 1
  • 5
  • 17
28
votes
4 answers

XCode 12: 'SessionDelegate' has different definitions in different modules

Edit: This problem occurs after XCode 12 Beta5. Xcode doesn't allow different modules to define same names (Probably for public classes & protocols). Alamofire and Kingfisher appears to define SessionDelegate at the same time. I'm still trying to…
Feridun Erbaş
  • 425
  • 6
  • 18
12
votes
2 answers

Insert Authorization Header field with kingfisher lib

I'm using Kingfisher to show image from url, but my endpoint requires a Authorization header. How to use these kind of url with Kingfisher or SDWebImage in iOS?
sony
  • 616
  • 1
  • 9
  • 18
10
votes
3 answers

How to cache images only in disk using Kingfisher?

I am using Kingfisher library for downloading and caching images. I am facing some issues in the implementation: Are the images cached in both memory and disk? Is there any provision to cache images only on disk? I have already read multiple posts…
PGDev
  • 20,976
  • 5
  • 29
  • 68
7
votes
2 answers

How to resize UIImageView after loading image from URL w/ Kingfisher

I would like to resize any downloaded images so they maintain their aspect ratio, however are all as wide as the UITableViewCell they are rendered in. My UIImageView is configured with the contentMode as AspectFit and I have the following anchors on…
Tim J
  • 901
  • 4
  • 17
6
votes
3 answers

Kingfisher image render recycling cells

I'm using Kingfisher to download and cache my images. I'm using the custom class below CustomImageView that extends ImageView. I also am using my custom UITableViewCell to call the loadImage method within the didSet property in my CustomCell class…
antdwash
  • 478
  • 4
  • 10
6
votes
5 answers

How to clear memory and disk cache for images loaded using Kingfisherin UITableView?

I need to free all the memory occupied by images fetched using Kingfisher. I have a UITableView that store a lot of images and has the Load More feature also. I tried these measures. In viewDidLoad() I am setting the cache size. let cache =…
Ankit Kumar Gupta
  • 3,499
  • 3
  • 24
  • 50
5
votes
2 answers

Main thread blocking on scroll and Kingfisher setting the image

I've been running down slow scroll performance and I've noticed that when I scroll and setImage gets called with non-cached images, the performance lags while the download happens. if let imageURL = URL(string: presentable.imageUrl) { let…
Zack Shapiro
  • 5,202
  • 14
  • 65
  • 121
5
votes
3 answers

Value of type 'UIImageView' has no member 'kf' in swift 4

I am using Kingfisher library for downloading an image from URL and setting to UIIMageView in Swift 4 project. I know there are API changes between Kingfisher 2 and Kingfisher 3…
nikhilgohil11
  • 958
  • 14
  • 24
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

What's the Kingfisher default cache behavior?

I am using Kingfisher library for the purpose of caching images in UICollectionView cells. I noticed that calling kf_setImage (assuming that the name of the cell called listCell and its ImageView called imgMain) as…
Ahmad F
  • 26,570
  • 13
  • 76
  • 124
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
  • 517
  • 6
  • 13
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…
4
votes
3 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
  • 664
  • 6
  • 12
4
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
  • 101
  • 10
1
2 3
10 11