Skip to content

Crash when custom UICollectionViewLayout #14

Description

@toanbv-fabbi

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions