KKPhotoBrowser
Swift轻量级的图片浏览器
Features
单击浏览
双击放大
长按保存到相册
捏合放大
旋转捏合取消浏览
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)