Kingfisher cache image to disk
ios, kingfisher, uikit
Solution
The downloader (`ImageDownloader`) has nothing to do with cache. If you want to download and cache (as well as retrieve the cached images later), you should use the manager method: `KingfisherManager.shared.retrieveImage` instead of downloader standalone.
Problem
``` for url in status.storedPicURLS! { group.enter() print("\(status.storedPicURLS)") KingfisherManager.shared.downloader.downloadImage(with: url, options: nil, progressBlock: nil, completionHandler: { (image, _, _, _) in print(" \(image)") group.leave() }) } } group.notify(queue: .main) { finished(list, nil) } ``` I can get the image in the Console, but I can not find them in the Caches. ``` /Library/Developer/CoreSimulator/Devices/7AF33AA9-220E-4B54-9830- AA94226C16E8/data/Containers/Data/Application/451F885E-1DFF-4E57-A0D7-B3DEC880DF8F/Library/Caches/ ```