JWWebImageCache can share image cache between WKWebView and Native. And you can integrate image caching framework used in your project. For instance, YYWebImage or SDWebImage.
To run the example project, clone the repo, and run pod install
from the Example directory first.
JWWebImageCache is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JWWebImageCache', :git => 'https://github.com/WJustin/JWWebImageCache.git'
if you use SDWebImage, you can copy the SDWebImageDownlodHandler class to your project.
if you use YYWebImage, you can copy the YYWebImageDownloadHandler class to your project.
for example: SDWebImage
id <JWDownloadProtocol> handler = [[SDWebImageDownlodHandler alloc] init];
[JWWebImageCache setupWithDelegate:handler];
Justin.wang, wangrongchao@126.com
JWWebImageCache is available under the MIT license. See the LICENSE file for more info.