Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用图片浏览器功能,来回滑动导致小的图片变大(比如第二个图片宽高比较小,第三个铺满全屏,划到第三个或者第四个再回到第二个图片,第二个图片也变成铺满全屏的了) #977

Open
xiaomuchonglove opened this issue Feb 24, 2025 · 0 comments

Comments

@xiaomuchonglove
Copy link

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)
}  请问是使用方法不对吗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant