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

Removing top/bottom padding from UIImageView

I have a custom UITableViewCell that has a UIImageView. I pull images from the internet to populate the image view in the cells so the aspect ratio can be different for each image. I would like to avoid top/bottom padding in the UIImageView when…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
1
vote
0 answers

Kingfisher XCode 15 & iOS 17 Support

I just upgraded my XCode to version 15. When I try to return Provider with computed property, it gave me the error below; Argument type 'ImageResource' does not conform to expected type 'Resource' Is there any possibility that you update library…
burak1colak
  • 156
  • 1
  • 7
1
vote
1 answer

Unable to set a custom cache for KFImage in SwiftUI

I want to load an image from a custom cache (named "offline") for KFImage when using it in a SwiftUI view. I have tried various approaches, but I am still unable to apply the custom cache to KFImage. It works fine when setting images in UIKit. Note:…
Emin Israfil iOS
  • 1,801
  • 1
  • 17
  • 26
1
vote
2 answers

Can we skip placing image in 1x, 2x but only placing in 3x Assets.xcassets, for app size optimization purpose?

Can we skip placing image in 1x, 2x but only placing in 3x Assets.xcassets, for app size optimization purpose? In order to increase sales, we plan to place a high number of high resolution screenshot images, within our app. However, we do not want…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
1
vote
2 answers

Images in UITableView keep re-loading and wrong images flash while scrolling in swift

The application has a UITable View which loads dynamic images into cells. Images are downloaded while scrolling and they are converted into UIImages. Those UIImages will be set to the ImageView with help of KingFisher. Simple Cache mechanism has…
KZoNE
  • 1,249
  • 1
  • 16
  • 27
1
vote
1 answer

SwiftUI Kingfisher blurry Image on resize

In SwiftUI I’m using Kingfisher dependency for image download / cashing & have a following issue, when image resized it becomes low quality and blurry. Here’s my implementation: struct IconView: View { let frame: CGFloat let url:…
Hattori Hanzō
  • 2,349
  • 4
  • 19
  • 36
1
vote
1 answer

How to use AspectScaledToFitAndCenterSizeFilter in kingFisher library in swift

In my project I was using AlamofireImage in swift. Now we replaced AlamofireImage with the KingFisher library. I have created a struct using below to fit the filter struct AspectScaledToFitAndCenterSizeFilter: ImageFilter, Sizable { /// The…
ios
  • 27
  • 5
1
vote
0 answers

Swift UI + iOS 14.5 + Kingfisher + NavigationLink View

Since the upgrade of iOS to 14.5, my child view from a NavigationLink doesn't show the images from Kingfisher/Firebase. Just a blank image, but constraints are still in affect, the space of the blank image. If I change it to a sheet which I don't…
debratton
  • 51
  • 1
  • 7
1
vote
1 answer

Kingfisher image not transitioning with rest of parent view

I just started to use Kingfisher to display web images using SwiftUI. However, I seem to have a problem when the image is inside an animated view. I have a side menu that slides in from the left with a user's profile picture on my app. When using…
Rigaux
  • 49
  • 1
  • 8
1
vote
1 answer

KFImage image loaded but not displayed?

I am trying to display remote images using Kingfisher SDK , the images are loaded but its not displayed import SwiftUI import Kingfisher struct Tab_Home: View { //Slider @State var…
Kodr.F
  • 13,932
  • 13
  • 46
  • 91
1
vote
1 answer

Kingfisher updating KFImage url is not updating the image in SwiftUI

Sorry for beginner question, I am trying to transition from UIKit to SwiftUI. @State variable's didSet does not get triggered like it does in UIKit. I have KFImage that loads an image from a user's photoUrl and I want it when tapped, launches image…
Samuel Folledo
  • 442
  • 6
  • 15
1
vote
0 answers

SwiftUI: Kingfisher using KFImage can display erroneous semitransparent image

I am using KFImage to asynchronously load images in SwiftUI views including List rows. Sometimes it happens that when scrolling rows and there are I think some cell reusing or refreshes KFImage image displayed is made with a little semitransparency…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
1
vote
0 answers

UICollectionViewCell size wrong when using Kingfisher activityIndicator

I've got a collectionview that is loading images from URLs via the kingfisher library. I'm trying to achieve a 3 column layout and this is working fine, until I add a loadingIndicator via kingfisher. My cellForRowAt method is as follows: func…
1
vote
1 answer

Swift white background from rounded image

So I am using the following code to create a rounded image from a Facebook profile image. The issue is when iOS switches to dark mode it has these white corners which should not be there. I am wondering how do I get rid of this white background…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
1
vote
2 answers

kingfisher causing main thread issue

So the app works in test mode but as soon as I went to build for release I got this main thread issue. UIImageView.image must be used from main thread only According the the error I am not calling something on the main thread, yet the line it has…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204