From 2adea72158575b251f1f97ee7b8bf2958143fe04 Mon Sep 17 00:00:00 2001 From: Vincent Peng Date: Tue, 21 Feb 2017 09:01:51 -0800 Subject: [PATCH] Rename "withCollectionView:" param to "collectionView:" Summary: - Rename "withCollectionView:" param to "collectionView:" param to be consistent with the rest of the protocol. - Update tests. Related issue: #466 - [x] All tests pass. Demo project builds and runs. - [ ] I added tests, an experiment, or detailed why my change isn't tested. - [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Closes https://github.com/Instagram/IGListKit/pull/491 Differential Revision: D4589976 Pulled By: rnystrom fbshipit-source-id: 5e5aa7328a6bbac6baa705d5228f0eb4321d8c31 --- CHANGELOG.md | 5 +++++ Source/IGListAdapterUpdater.m | 2 +- Source/IGListAdapterUpdaterDelegate.h | 2 +- Tests/IGListAdapterUpdaterTests.m | 6 +++--- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dee35f57..b2a14c54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,9 @@ This release closes the [3.0.0 milestone](https://github.com/Instagram/IGListKit - Replaced `IGListGridCollectionViewLayout` with `IGListCollectionViewLayout`. [[Ryan Nystrom](https://github.com/rnystrom) [(tbd)](https://github.com/Instagram/IGListKit/pull/tbd) +- Renamed `IGListAdapterUpdaterDelegate` method to `listAdapterUpdater:didPerformBatchUpdates:collectionView:`. [Vincent Peng](https://github.com/vincent-peng) [(#491)](https://github.com/Instagram/IGListKit/pull/491) + + ### Enhancements - You can now manually move items (cells) within a section controller, ex: `[self.collectionContext moveInSectionController:self fromIndex:0 toIndex:1]`. [Ryan Nystrom](https://github.com/rnystrom) [(#418)](https://github.com/Instagram/IGListKit/pull/418) @@ -209,3 +212,5 @@ You can find a [migration guide here](https://instagram.github.io/IGListKit/migr ----- Initial release. :tada: + + diff --git a/Source/IGListAdapterUpdater.m b/Source/IGListAdapterUpdater.m index 8bd9bf28..391202e5 100644 --- a/Source/IGListAdapterUpdater.m +++ b/Source/IGListAdapterUpdater.m @@ -199,7 +199,7 @@ static NSArray *objectsWithDuplicateIdentifiersRemoved(NSArray