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

loading images with kingfisher takes time to load view

I have a list of products and each product will have their image. Whenever I open a list with more than 30 images, it will be a delay when opening the view, I assume this is happening because of SwiftUI loading the images from the cache. This just…
2
votes
2 answers

Change tintcolor image view using kingfihser in swift

I have a horizontal collection view so when selecting the specific cell will change the color of the image view, the problem is when selecting an image tint color changes successfully on images, and some image's tint color does not work with the…
2
votes
2 answers

Kingfisher Image takes full width

I am loading images from URLs with the KFImage of the Kingfisher Library. There is the probability that some URLs are invalid. So Kingfisher will not be able to load an image from this url. In this case i would like to collapse the…
tscheppe
  • 588
  • 5
  • 18
2
votes
1 answer

How to load an image in kingfisher without an image view?

Kingfisher allows for some easy methods to load images asynchronously from network or cache, for instance: imageView.kf.setImage(with: imageUrl) Is there a way to load the image directly outside of the context of the image view? I.e. something…
sak
  • 2,612
  • 24
  • 55
2
votes
1 answer

SPM Kingfisher SwiftUI Compiler error while archiving

If I try to archive my project, I get many compiler errors with Kingfisher for SwiftUI. I can run code on my device and on the simulator without any problems. Xcode Version 13.0 (13A233) SPM KingFisher 6.3.1 Have anyone got an idea? enter image…
Berkant
  • 31
  • 3
2
votes
1 answer

Why is the image being removed from the cache? | Kingfisher

I am using Kingfisher on SwiftUI. I download the image from url with Kingfisher I will explain the problem step by step: I download the image from url After I close my own application from the background, I open the Instagram application and scroll…
Ufuk Köşker
  • 1,288
  • 8
  • 29
2
votes
4 answers

Kingfisher Swift Compiler error when Archiving

I'm using xCode 13 beta 4 and want to archive my project containing Kingfisher. The app runs fine under iOS 15, however I get the following errors when I look to archive it. Anyone with an idea what I should do? Thanks!
mcmgr
  • 21
  • 1
  • 2
2
votes
2 answers

Can't display image from url using Kingfisher

I imported Kingfisher import UIKit import Kingfisher This is my simple code to can explain the problem Creating an imageView and trying display image from URL class ViewController: UIViewController { @IBOutlet weak var…
2
votes
0 answers

Missing return in a function expected to return 'CacheCallbackCoordinator.State'

Updated my podfile and started getting this error in KingFisherManager.(Please help) set { stateQueue.sync { threadSafeState = newValue } } get { stateQueue.sync { threadSafeState } } } init(shouldWaitForCache: Bool,…
Neil Leon
  • 55
  • 6
2
votes
1 answer

Slow Images Download Speed with Kingfisher , what is my problem?

I have a tableview which download pictures of restaurants menu which range from 200 Kilobytes to 2 MB using kingFisher pod. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell =…
FamousMaxy
  • 686
  • 5
  • 21
2
votes
2 answers

Swift App Termination removes Kingfisher Disk Cache

I'm having trouble with my kingfisher cache. The scenario: I save images from URL to a custom kingfisher cache. When I read the given URL, it tells me that it first fetches the image from memory and after a few seconds, when refreshing, from disk.…
matsbauer
  • 424
  • 3
  • 16
2
votes
1 answer

Local gif didn't show when I updated Kingfisher

I updated Kingfisher from 4.10 to 5.7,however,the gif didn't show on imageView with the same code. Here is my code: let path = Bundle.main.path(forResource: "loading", ofType: "gif")! let resource = ImageResource(downloadURL: URL(fileURLWithPath:…
无夜之星辰
  • 5,426
  • 4
  • 25
  • 48
2
votes
1 answer

UICollectionView dequeues wrong cell and shows wrong image

I have a UICollectionView in which I show either an image or an image of a video with a play button. The cells take up the entire width of the screen, so only one cell is visible on screen at the same time. Users can scroll left or right to show the…
PennyWise
  • 595
  • 2
  • 12
  • 37
2
votes
0 answers

How can I iterate through an array of imageUrls on Firestore, to then return as images based on their index in UIPickerView?

Currently, I am fetching imageUrls from Firestore using my 'tuwos' delegate (code not included). I then use a forIn loop, where I use a print statement to make sure each individual imageUrl has been fetched successfully (they are). Also in my forIn…
2
votes
1 answer

How to load image asynchronously with Swift using UIImageViewExtension and preventing duplicate images or wrong Images loaded to cells

Im developing an image loading library in Swift 4 something like Kingfisher with some extensions to support loading images from URL into an UIImageView . So then i can use this extension on a UICollection or UITableview cell with an UIImageView…
BigFire
  • 317
  • 1
  • 4
  • 17
1 2
3
12 13