Improved Wiggling iOS 9 UICollectionView (Swift)

With iOS 9 UICollectionView now has built-in drag and drop reorder. This is very easy to enable specially when using a UICollectionViewController.

However there is no animation showing that the move operation started or finished, and worse there is no delegate call or notification to be informed of move start/end.

So here is my UICollectionView subclass which adds:

  • Wiggle animation while moving (taken from this library)
  • isWiggling read-only property to check if collection view is currently moving a cell
  • Notifications at start and end of move

Here is the code