IGListKit/Source/Internal
Andrew Monshizadeh a4e5ad862e Move section index to property
Summary:
This pull request removes the `sectionForSectionController:` method from the `IGListCollectionContext` protocol so that the protocol is exclusively for presentation methods.

This should not add new functionality, but rather makes the index directly accessible on the section controllers themselves. This change makes sense because at no time will there be an update to the list that the list adapter is unaware of and so it will always be able to set and update any indexes for a section controller that has changed.

Issue fixed: #609

- [X] All tests pass. Demo project builds and runs.
- [X] 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/671

Reviewed By: jessesquires

Differential Revision: D4942159

Pulled By: amonshiz

fbshipit-source-id: d648cfdd381cbf1d9ee7ff549ae27d2972a84622
2017-05-01 07:28:27 -07:00
..
IGListAdapter+DebugDescription.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListAdapter+DebugDescription.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListAdapter+UICollectionView.h Move UICollectionView(DataSource|Delegate) to category 2017-04-18 11:21:18 -07:00
IGListAdapter+UICollectionView.m Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListAdapterInternal.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListAdapterProxy.h fix NSProxy init 2017-04-18 13:00:55 -07:00
IGListAdapterProxy.m Initial commit 2016-10-11 10:12:17 -04:00
IGListAdapterUpdater+DebugDescription.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListAdapterUpdater+DebugDescription.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListAdapterUpdaterInternal.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListBatchUpdateData+DebugDescription.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListBatchUpdateData+DebugDescription.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListBatchUpdates.h Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListBatchUpdates.m Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListBatchUpdateState.h Track batch updates in object and explicit state 2017-03-07 09:33:03 -08:00
IGListCollectionViewLayoutInternal.h add integer pixel scaled for frame 2017-03-17 12:33:34 -07:00
IGListDebugger.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListDebugger.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListDebuggingUtilities.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListDebuggingUtilities.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListDisplayHandler.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListDisplayHandler.m Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListReloadIndexPath.h Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListReloadIndexPath.m Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListSectionControllerInternal.h Move section index to property 2017-05-01 07:28:27 -07:00
IGListSectionMap+DebugDescription.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListSectionMap+DebugDescription.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
IGListSectionMap.h Move section index to property 2017-05-01 07:28:27 -07:00
IGListSectionMap.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListStackedSectionControllerInternal.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListWorkingRangeHandler.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListWorkingRangeHandler.mm Remove IGListSectionType 2017-04-19 08:26:30 -07:00
UICollectionView+DebugDescription.h Add debug dump scripts 2017-04-21 16:46:06 -07:00
UICollectionView+DebugDescription.m Add debug dump scripts 2017-04-21 16:46:06 -07:00
UICollectionView+IGListBatchUpdateData.h Initial commit 2016-10-11 10:12:17 -04:00
UICollectionView+IGListBatchUpdateData.m Prevent a crash when inserting the same index twice, re-open of #616 2017-04-11 15:02:13 -07:00