dmytro-anokhin / url-image

AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.
MIT License
1.1k stars 96 forks source link

Get a cached image url by remote URL #143

Closed donly closed 3 years ago

donly commented 3 years ago

I know all the images cached under URLImageService.shared.diskCacheURL, is it possible to get a cached image file url by its remote URL?

dmytro-anokhin commented 3 years ago

URLImageService.shared.diskCacheURL is more of an introspection property, useful for debugging. In current version of the package you can get CGImage object, but not the file. Next version, hopefully released sometime soon, will allow accessing cached images.