圖片預(yù)覽、縮放、分享、保存
注意添加相冊權(quán)限
- Privacy - Photo Library Additions Usage Description
- Privacy - Photo Library Usage Description

Cocoapods 引入
pod 'MZImageBrowsing', '~> 0.0.3'
使用
// 使用要預(yù)覽的imageView數(shù)組初始化
let controller = MZImageBrowsingController(imageViewList: imageViews, currentIndex: index)
self.present(controller, animated: true, completion: nil)
// 使用網(wǎng)絡(luò)圖片鏈接數(shù)組和當(dāng)前選中的imageView初始化
let controller = MZImageBrowsingController(imageUrlList: urls, currentImageView: imageView, currentIndex: index)
self.present(controller, animated: true, completion: nil)