Add stacked section controller demo

Summary:
Adding a pretty basic stacked demo. 3 different sections, each with 3 child section controllers that handle an `Int` data.

Requires #354 to be fully functional (working range).

Closes #134

- [x] All tests pass. Demo project builds and runs.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/355

Differential Revision: D4363859

Pulled By: jessesquires

fbshipit-source-id: 5dbc8e18388fed4930f189e3477ff57f0edf2d13
This commit is contained in:
Ryan Nystrom
2016-12-22 14:19:45 -08:00
committed by Facebook Github Bot
parent 2957ee5feb
commit 1b70435993
5 changed files with 78 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ final class ExpandableSectionController: IGListSectionController, IGListSectionT
func didSelectItem(at index: Int) {
expanded = !expanded
collectionContext?.reload(self)
collectionContext?.reload(in: self, at: IndexSet(integer: 0))
}
}