Skip to content

WJustin/JWWebImageCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, [email protected]

License

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

About

share image cache between WKWebView and Native

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published