Latest 0.1.5
Homepage https://github.com/Mosquito1123/WTPhotoBrowser
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher
Authors

自定义简易图片浏览器,方便敏捷开发,集成到相应的图片预览组件

‘pod ‘ZWTPhotoBrowser’

Demo

`
let photos = self.photoView.imageArray.map { (image) -> WTPhoto in
let photo = WTPhoto(image: image)
return photo
}
let browser = WTPhotoBrowser(photos: photos, currentIndex: view.indexPath(for: cell)?.row ?? 0) { (index) -> (UIImageView) in
return cell.imageV
}
// let browser = WTPhotoBrowser(photos: photos, currentIndex: view.indexPath(for: cell)?.row ?? 0)
browser.indicatorStyle = .pageControl
self.present(browser, animated: true) {

}

Latest podspec

{
    "name": "ZWTPhotoBrowser",
    "version": "0.1.5",
    "summary": "A simple Photo Browser WTPhotoBrowser.",
    "description": "u7b80u6613u7684u56feu7247u6d4fu89c8u5668,u652fu6301u6a2au5c4f,u652fu6301u5c55u793au52a8u753bu548cu56deu9000u52a8u753b,u9002u5408u5febu901fu654fu6377u5f00u53d1.A simple Photo Browser WTPhotoBrowser.",
    "homepage": "https://github.com/Mosquito1123/WTPhotoBrowser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Winston Cheung": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Mosquito1123/WTPhotoBrowser.git",
        "tag": "0.1.5"
    },
    "source_files": [
        "PhotoBrowser",
        "PhotoBrowser/*.swift"
    ],
    "resource_bundles": {
        "PhotoBrowser": [
            "Resource/**/*"
        ]
    },
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": []
    },
    "pushed_with_swift_version": "echo "3.0" >> .swift-version"
}

Pin It on Pinterest

Share This