Latest 0.0.3
Homepage https://github.com/ripplek/KKPhotoBrowser
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher
Authors

Swift轻量级的图片浏览器

KKPhotoBrowser KKPhotoBrowser apm KKPhotoBrowser

Features

单击浏览

KKPhotoBrowser

双击放大

doubleTap

长按保存到相册

longPress

捏合放大

pinch

旋转捏合取消浏览

rotateAndPinch

Requirements

  • iOS9.0+
  • Xcode8.0+
  • Swift3.0+

Installation with CocoaPods

通过cocoaPods将KKPhotoBrowser集成到你的项目中,首先要确保你已经安装了cocoaPods,然后执行
$pod init
配置podfile文件

target 'TargetName' do
pod 'KKPhotoBrowser'
end

配置完成后执行
$pod install

usage

let browserVC = KKPhotoBrowserController(selectedIndex: currentIndex, urls: photoUrls, parentImageViews: cell.visibaleImageViews())

present(browserVC, animated: true, completion: nil)

Latest podspec

{
    "name": "KKPhotoBrowser",
    "version": "0.0.3",
    "summary": "A PhotoBorwser Library for iOS.",
    "homepage": "https://github.com/ripplek/KKPhotoBrowser",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u5f20u5764": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ripplek/KKPhotoBrowser.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "PhotoBrowser/KKPhotoBrowser/*.swift",
        "PhotoBrowser/KKPhotoBrowser/Animator/*.swift",
        "PhotoBrowser/KKPhotoBrowser/Model/*.swift",
        "PhotoBrowser/KKPhotoBrowser/View/*.swift"
    ],
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This