Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.61 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.61 KB

JWWebImageCache

CI Status Version License Platform

Introduction

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.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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'

Useage

1. Integrate image caching framework

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.

2. setup sdk

for example: SDWebImage
id <JWDownloadProtocol> handler = [[SDWebImageDownlodHandler alloc] init];
[JWWebImageCache setupWithDelegate:handler];

Author

Justin.wang, wangrongchao@126.com

License

JWWebImageCache is available under the MIT license. See the LICENSE file for more info.