ra1028 / DiffableDataSources

💾 A library for backporting UITableView/UICollectionViewDiffableDataSource.
https://ra1028.github.io/DiffableDataSources
Apache License 2.0
851 stars 68 forks source link

Crash when custom UICollectionViewLayout #14

Open toanbv-fabbi opened 4 years ago

toanbv-fabbi commented 4 years ago

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

ra1028 commented 4 years ago

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