IGListKit/Source
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
..
Common Add debug dump scripts 2017-04-21 16:46:06 -07:00
Internal Move section index to property 2017-05-01 07:28:27 -07:00
IGListAdapter.h Init without working range size 2017-04-21 14:30:46 -07:00
IGListAdapter.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListAdapterDataSource.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListAdapterDelegate.h Remove @param alignment from header docs #trivial 2017-04-18 09:46:18 -07:00
IGListAdapterUpdater.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListAdapterUpdater.m Balance reload delete and insert calls 2017-04-22 12:15:59 -07:00
IGListAdapterUpdaterDelegate.h Remove @param alignment from header docs #trivial 2017-04-18 09:46:18 -07:00
IGListBatchContext.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListBindable.h Nitpicky comment fixes 2017-03-31 13:01:40 -07:00
IGListBindingSectionController.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListBindingSectionController.m Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListBindingSectionControllerDataSource.h Remove @param alignment from header docs #trivial 2017-04-18 09:46:18 -07:00
IGListBindingSectionControllerSelectionDelegate.h Auto diffing section controller 2017-03-15 07:47:24 -07:00
IGListCollectionContext.h Move section index to property 2017-05-01 07:28:27 -07:00
IGListCollectionViewLayout.h Remove @param alignment from header docs #trivial 2017-04-18 09:46:18 -07:00
IGListCollectionViewLayout.mm Fixed empty space bug in CollectionView 2017-04-21 08:20:16 -07:00
IGListDisplayDelegate.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListGenericSectionController.h Add generic type section controller 2017-04-19 12:45:36 -07:00
IGListGenericSectionController.m Add generic type section controller 2017-04-19 12:45:36 -07:00
IGListKit.h Add generic type section controller 2017-04-19 12:45:36 -07:00
IGListReloadDataUpdater.h Add Nullability to a Few Headers 2017-04-10 10:18:20 -07:00
IGListReloadDataUpdater.m Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListScrollDelegate.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListSectionController.h Move section index to property 2017-05-01 07:28:27 -07:00
IGListSectionController.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListSingleSectionController.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListSingleSectionController.m Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListStackedSectionController.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
IGListStackedSectionController.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListSupplementaryViewSource.h Remove @param alignment from header docs #trivial 2017-04-18 09:46:18 -07:00
IGListUpdatingDelegate.h Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListWorkingRangeDelegate.h Remove IGListSectionType 2017-04-19 08:26:30 -07:00
Info.plist Release 2.1.0 prep 2017-01-04 10:14:37 -08:00