KKPhotoBrowser
Swift 轻量级图片浏览器
功能
单击浏览
双击放大
长按保存到相册
捏合放大
旋转捏合取消浏览
需求
- iOS9.0+
- Xcode8.0+
- Swift3.0+
使用CocoaPods安装
要将KKPhotoBrowser集成到项目中,请确保已经安装了cocoaPods,然后执行 $pod init
来配置podfile
文件
target 'TargetName' do
pod 'KKPhotoBrowser'
end
配置完成后执行 $pod install
使用方法
let browserVC = KKPhotoBrowserController(selectedIndex: currentIndex, urls: photoUrls, parentImageViews: cell.visibaleImageViews())
present(browserVC, animated: true, completion: nil)