PhotoBrowser
PhotoBrowser copied to clipboard
使用Kingfisher时图片未下载时图片变形
首次 图片未下载 变形
第二次正确显示
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()
收到,我查下