使用swift实现的iOS端图片预览工具
UIImagePreviewController
Params:
imageArray
: UIImage Arrayposition
: the location of the first image to be displayedbgColor
: page background color
self?.navigationController?.pushViewController(UIImagePreviewController(imageArray: targets, bgColor: .black), animated: true)