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)