DiffableDataSources icon indicating copy to clipboard operation
DiffableDataSources copied to clipboard

Crash when custom UICollectionViewLayout

Open toanbv-fabbi opened this issue 6 years ago • 1 comments

I create UICollectionView with custom UICollectionViewLayout Call RestApi and update data with snapshot for CollectionViewDiffableDataSource and result var snapshot = DiffableDataSourceSnapshot<Section,Post>() let section = Section() snapshot.appendSections([section]) snapshot.appendItems(self.posts) self.dataSource.apply(snapshot) If I use UICollectionViewDataSource (default) instead then no error https://i.imgur.com/rl6FG9s.png

Environments

  • version:

  • Swift version: 5.1

  • iOS version: 12

  • Xcode version: 10.3

  • Devices/Simulators: iPhone X

  • CocoaPods/Carthage version:

toanbv-fabbi avatar Dec 19 '19 04:12 toanbv-fabbi

Sorry, I don't know anything because there is too little information.

ra1028 avatar Mar 31 '20 16:03 ra1028