Skip to content

Add scrolling method to IGListCollectionContext #267

@jessesquires

Description

@jessesquires

Scenario

  1. There's an "expandable cell" in a list. Tap it to toggle collapse/expand, via -didSelectItemAtIndex:
  2. After it is expanded, the larger cell isn't completely on screen (it's the last cell)
  3. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions