UICollectionViewListCell配置如下:
var configuration = cell.defaultContentConfiguration()
configuration.text = "Foo"
configuration.image = UIImage(named: "foo")
configuration.imageProperties.maximumSize = CGSize(width: 40, height: 40)
cell.contentConfiguration = configuration
如何使用Nuke从 URL 加载图像?有了UITableViewCell,我们可以做到:
Nuke.loadImage(with: url, into: cell.imageView)
但是UICollectionViewListCell没有imageView。