-didSelectItemAtIndex:SectionController, I need to say "scroll to bottom" There's no way to do this currently, given the collectionContext available to SectionController objects. However, all the functionality is there.
Add this scrolling method on IGListAdapter to the IGListCollectionContext protocol. This gives us everything we need, and it's a minimal change.
Also, why is IGListCollectionContext conformance not public on IGListAdapter ? I don't really see any negatives to this?
Maybe that scrolling method gives a SectionController too much knowledge. In that case, we could expose the regular collection/scroll view methods for this.
cc @rnystrom -- Thoughts ?
We could add a method like
- (void)scrollToSectionController:(...)sectionController atIndex:(NSInteger)index direction/position/animated;
I think its reasonable they have this behavior.
Also, why is IGListCollectionContext conformance not public on IGListAdapter ? I don't really see any negatives to this?
Originally to hide the inner workings. No downside, but at the same time you don't want people knowing the adapter is the context, then internally doing stuff like [(IGListAdapter *)self.collectionContext visibleSectionControllers].
Though its not the end of the world, it'll let global-state creep in.
Just chatted w/ folks internally that need this feature now. @jessesquires lmk if you have time to knock it out in the next few days, otherwise I can handle it.
I think a simple API on the context should be fine for now. Can nab the section controller section, create an index path, then just call the UICollectionView scroll method.
@rnystrom -- Cool, will do this today 馃憤