how to get the url of image where image is stored? #1924
Replies: 2 comments
-
Maybe this and you can use it like: let url = ImageLoader.sampleImageURLs[indexPath.row]
let fileURL = KingfisherManager.shared.cache.diskStorage.cacheFileURL(forKey: url.cacheKey) But be careful, it just gives you a URL where the image "should" be in if it was cached. Remember to check the file existence every time before you actually use that URL to do your things. |
Beta Was this translation helpful? Give feedback.
-
You can retrieve the cached image URL from Kingfisher by using the |
Beta Was this translation helpful? Give feedback.
-
my image is set into cache by kingfisher I need the URL where this image is stored how to know that?
like FileURL?
thanks
Beta Was this translation helpful? Give feedback.
All reactions