-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Scenario
- There's an "expandable cell" in a list. Tap it to toggle collapse/expand, via
-didSelectItemAtIndex: - After it is expanded, the larger cell isn't completely on screen (it's the last cell)
- From the
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.
Proposal
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?
Alternative
Maybe that scrolling method gives a SectionController too much knowledge. In that case, we could expose the regular collection/scroll view methods for this.