MTPhotoBroswer是一个方便查看完整图片、视频的框架。
// 单图
let vc = MTAssetBroswerViewController(image: image)
// let vc = MTAssetBroswerViewController(url: imageurl)
/// 当前点击的视图
vc.presentingImageView = imageView
present(vc, animated: false, completion: nil)
iOS 12.4+
Swift 5.0+
SnapKit
Kingfisher
MTPhotoBroswer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MTPhotoBroswer'
cycweeds, cycweeds@gmail.com
MTPhotoBroswer is available under the MIT license. See the LICENSE file for more info.