'Custom cell transition with UICollectionViewCompositionalLayout and UICollectionViewDiffableDataSource

I'm using a UICollectionView with compositional layout (UICollectionViewCompositionalLayout) and diffable data source (UICollectionViewDiffableDataSource)

I'd like to replace the cell's fade animation with my own custom animation when updating the snapshot of a data source

collectionDataSource.apply(snapshot, animatingDifferences: true)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source