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

使用Kingfisher时图片未下载时图片变形 #203

Open
2410495654 opened this issue Mar 9, 2021 · 1 comment
Open

使用Kingfisher时图片未下载时图片变形 #203

2410495654 opened this issue Mar 9, 2021 · 1 comment

Comments

@2410495654
Copy link

首次 图片未下载 变形

第二次正确显示

let browser = JXPhotoBrowser()
                                browser.numberOfItems = {
                                    1
                                }
                                browser.reloadCellAtIndex = { context in
                                    let browserCell = context.cell as? JXPhotoBrowserImageCell
                                    let indexPath = IndexPath(item: context.index, section: 0)
                                    browserCell?.imageView.kf.setImage(with: URL(string: url), placeholder: UIImage(color: .white, size: CGSize(width: 1, height: 1)))
                                }
                                browser.show()

正确

变形

@JiongXing
Copy link
Owner

收到,我查下

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

2 participants