func showPhotoBrower(index:Int = 0, images: [String]) {
let imageURLs = images.compactMap{$0.url}
let safeIndex = imageURLs.count > index ? index : 0
let vc = ZLImagePreviewController(datas:imageURLs,
index: safeIndex,
showSelectBtn: false,
showBottomView: false,
urlType: {_ in .image}) { url, imageView, progress, complete in
imageView.kf.setImage(with: url)
}
ZLPhotoUIConfiguration.resetConfiguration()
ZLPhotoUIConfiguration.default().showStatusBarInPreviewInterface = true
vc.modalPresentationStyle = .fullScreen
present(vc, animated: true)
} 请问是使用方法不对吗