Custom insert / delete animations in a modern UICollectionView

Viewed 144

How to apply custom insert / delete animation for collection view cells when using UICollectionViewCompositionalLayout with UICollectionViewDiffableDataSource?

Previously I did it by subclassing UICollectionViewLayout and overriding initialLayoutAttributesForAppearingItem and finalLayoutAttributesForDisappearingItem, but with this new stuff whenever snapshot is applied via diffable data source I only get default "fade" animation for any changes (even though I still override these methods).

0 Answers
Related