class: Gallery
图片浏览器
func
- browser(_ controller:UIViewController, photos:[Any], pageIndex:Int)
图片组浏览
使用注意
Gallery
基于第三方库SKPhotoBrowser,做的一层简单的封装
使用
- ViewController
// Image
let photos = [UIImage(),UIImage()]
Gallery.browser(self, photos:photos,pageIndex:0)
// URL
let photos = ["https://placehold.jp/150x150.png","https://placehold.jp/150x150.png"]
Gallery.browser(self, photos:photos,pageIndex:0)