How to animate NSCollectionView changes

Issue #323

Use proxy animator()

let indexPath = IndexPath(item: index, section: 0)
collectionView.animator().deleteItems(at: Set(arrayLiteral: indexPath))

let indexPath = IndexPath(item: 0, section: 0)
collectionView.animator().insertItems(at: Set(arrayLiteral: indexPath))
Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation