KKPhotoBrowser 0.1.0

KKPhotoBrowser 0.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2019
SPMSupports SPM

Maintained by ripple_k.



  • By
  • 张坤

KKPhotoBrowser

Swift轻量级的图片浏览器

apm

Features

单击浏览

双击放大

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)