diff --git a/Source/IGListAdapterUpdater.m b/Source/IGListAdapterUpdater.m index be2f9061..12d4ed30 100644 --- a/Source/IGListAdapterUpdater.m +++ b/Source/IGListAdapterUpdater.m @@ -222,6 +222,7 @@ } } @catch (NSException *exception) { [delegate listAdapterUpdater:self + collectionView:collectionView willCrashWithException:exception fromObjects:fromObjects toObjects:toObjects diff --git a/Source/IGListAdapterUpdaterDelegate.h b/Source/IGListAdapterUpdaterDelegate.h index 9961fd58..534aac6d 100644 --- a/Source/IGListAdapterUpdaterDelegate.h +++ b/Source/IGListAdapterUpdaterDelegate.h @@ -129,12 +129,14 @@ NS_SWIFT_NAME(ListAdapterUpdaterDelegate) Notifies the delegate that the collection view threw an exception in `-[UICollectionView performBatchUpdates:completion:]`. @param listAdapterUpdater The adapter updater owning the transition. + @param collectionView The collection view being updated. @param exception The exception thrown by the collection view. @param fromObjects The items transitioned from in the diff, if any. @param toObjects The items transitioned to in the diff, if any. @param updates The batch updates that were applied to the collection view. */ - (void)listAdapterUpdater:(IGListAdapterUpdater *)listAdapterUpdater + collectionView:(UICollectionView *)collectionView willCrashWithException:(NSException *)exception fromObjects:(nullable NSArray *)fromObjects toObjects:(nullable NSArray *)toObjects