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
1
vote
0 answers

How to asynchronously load images for UICollectionViewCell without reuse issues?

Background of problem: I am using Kingfisher to download and set images for all of my collection views and table views in my app. This works well, but I have one specific use case that I'm pretty sure Kingfisher doesn't have built in. What I am…
Maximilian Litteral
  • 3,059
  • 2
  • 31
  • 41
1
vote
2 answers

Load URL into array using Kingfisher

I've a button where I can upload images to my app. And once I upload them they are stored into an array which contains URLs. Now I'm trying to retrieve the image from the URL and insert it into an imageview, and right after it will be inserted into…
LolPrezy
  • 19
  • 4
1
vote
2 answers

Image on the app is so small and there are so many empty cells how can I get my image to be large so it can fit half of my phone screen?

Image is tiny when displayed how can I make it half of the size of my phone? import UIKit import Kingfisher class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet var tableview: UITableView! var…
1
vote
3 answers

Message from debugger: Terminated due to memory issue While scrolling in UITableView/UICollectionView with gif images Kingfisher Library

Code snippet: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell: BroadCastFeedTableViewCell = broadCastTableView.dequeueReusableCell(withIdentifier: "broadCastFeedCell") as…
Manish Patel
  • 117
  • 2
  • 9
1
vote
0 answers

Crash in SessionDelegate.swift line 93

I am experiencing a crash when invoking cancelDownloadTask() Do you have any idea whether the crash might be caused by Kingfisher? Crashlog I'm using Kingfisher 5.0.1 and I'm calling function from Deprecated.swift public func setImage(with resource:…
GregI
  • 11
  • 2
1
vote
0 answers

Don't inflate response image with Kingfisher

I've switched to Kingfisher to download image files from URLs. I used to use Alamofire for this, and I would have to set inflateResponseImage to false so that my image wouldn't appear skewed. However, I can't find an equivalent for Kingfisher. Can…
Tometoyou
  • 7,792
  • 12
  • 62
  • 108
1
vote
3 answers

Cannot convert value of type '(_) -> ()' to expected argument type 'CompletionHandler?' using KingFisher Swift

I am using a library called KingFisher to download image from internet. For the reference: https://github.com/onevcat/Kingfisher https://cocoapods.org/pods/Kingfisher imageView.kf.setImage(with: url) This instruction works flawless but i wanted to…
Abdulmoiz Ahmer
  • 1,953
  • 17
  • 39
1
vote
1 answer

UITableView not showing remote image until scroll or reload of tableviewcell

I am using Kingfisher to download and cache remote images. I would like to render those images in a UITableViewCell Currently the images do not show until I scroll. I suspect this is because the initial image size is nil, once I scroll the cell is…
Tim J
  • 1,211
  • 1
  • 14
  • 31
1
vote
1 answer

How can I use KingFisher library for images that are in assets folder, Swift?

I am using king fisher library but my problem is that I can't use this for images that stored in the asset- all of the kingfisher methods need url, so how can I use this for assets?
Saeed Rahmatolahi
  • 1,317
  • 2
  • 27
  • 60
1
vote
1 answer

How can I use Kingfisher to set the image on a map annotation view?

I want to have images downloaded by kingfisher and set as the image of my AnnotationView. The problem is that Kingfisher only seems to work on UIImageView's and the AnnotationView doesn't seem to expose its. So one approach would be to use…
Jochen
  • 88
  • 1
  • 9
1
vote
1 answer

How to set Image at current Cell (Kingfisher)? Swift

I have an TableView with custom cells. Label smiles contain links. How can I put Image from link to current ImageView'cell? My code func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let…
1
vote
2 answers

How to set indicatorType in KingFisher v5.0.0 from inside an extension on UIImageView?

I was able to to do something like this (using version 4.10.1): extension UIImageView { func test() { self.kf.indicatorType = .activity } } now with version 5.0.0 this is no longer possible with the following error: Cannot assign…
JAHelia
  • 6,934
  • 17
  • 74
  • 134
1
vote
1 answer

IOS Rxswift use Kingfisher to prefetch cell Image

I'm trying to implement Kingfisher prefetch feature inside an Rxswift project. The problem is with these 2 function collectionView.rx.prefetchItems collectionView.rx.cancelPrefetchingForItems The instruction at Kingfisher github is quite…
Lê Khánh Vinh
  • 2,591
  • 5
  • 31
  • 77
1
vote
0 answers

Firebase storage images caching to memory but not disk

Im woking with swift. My database setup. In my database I am saving the URL to the stored image in Firebase storage. I then use the URL to download and update UIImageviews which works nicely However, I have tried using SDWebImage and kingfisher to…
bradmuzza
  • 41
  • 1
  • 2
  • 8
1
vote
0 answers

load url image using kingfisher freeze when scrolling fast

I have a horizontal collection view inside tableview In each collection view there are no of images loading from url with kingfisher library but when i scroll fast ,tableview freeze for some seconds & scrolling continue after display cells images…
Dharini
  • 700
  • 7
  • 20