NSDiffableSnapshot causes collectionview's cell registration to be re-called even without any changes to the data
问题 I have a problem with NSDiffableDataSource . I have created this basic example containing a UICollectionView with a single item showing a random number: import UIKit class ViewController: UIViewController { enum Section { case main } enum Item { case myItem } var collectionView: UICollectionView! var dataSource: UICollectionViewDiffableDataSource<Section, Item>! lazy var myCellRegistration = UICollectionView.CellRegistration<UICollectionViewListCell, Void> { (cell, indexPath, _) in print(