Latest 0.0.4
Homepage https://github.com/weaken000/WKWebImageBroswer
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

WKWebPictureBroswer

图片浏览器

功能介绍

图片的异步下载,本地缓存
imageView的缓存复用

CocoaPod

pod 'WKWebImageBrowser', '~> 0.0.4'

API

图片下载

let imageView = UIImageView()
imageView.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
view.addSubview(imageView)
imageView.wk.setImage(url: URL(string: "url")!, placeHolder: nil, progress: { (progress) in  }) { (image, error) in }

图片浏览器

let imageView = UIImageView()
imageView.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
view.addSubview(imageView)

let vc = WKPictureBroswerViewController(urls: ["", ""], index: 0, fromView: imageView)
self.present(vc, animated: true, completion: nil)

let vc = WKPictureBroswerViewController(urls: ["", ""], index: 0, fromView: imageView)
self.navigationController?.delegate = vc
self.navigationController?.pushViewController(vc, animated: true)

效果展示

image

Latest podspec

{
    "name": "WKWebImageBrowser",
    "version": "0.0.4",
    "summary": "A full screen WebImageBrowser.",
    "homepage": "https://github.com/weaken000/WKWebImageBroswer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "weaken": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/weaken000/WKWebImageBroswer.git",
        "tag": "0.0.4"
    },
    "requires_arc": true,
    "source_files": "WKWebImageBrowser/*.swift",
    "resources": "WKWebImageBrowser/*.png",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This