-
When checking for the number of sections in reloadDataForNotification an index is compared to a count, so the count must always be larger than the index, else the index points past the last available item leading to an assertion like this: *** Assertion failure in -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering: animator:], …/UIFoundation/CollectionView/UICollectionView.m:7095 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to delete section 1, but there are only 1 sections before the update'
07283e6a