Instagram / IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.
https://instagram.github.io/IGListKit/
MIT License
12.85k stars 1.54k forks source link

Expose UICollectionViewDataSource methods `indexTitlesForCollectionView:` and `indexPathForIndexTitle:atIndex:` #1140

Open Malecks opened 6 years ago

Malecks commented 6 years ago

New issue checklist

General information

Debug information

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

Hello! I would like to propose a feature to expose the optional methods on UICollectionViewDataSource - indexTitlesForCollectionView: and indexPathForIndexTitle:atIndex:

These methods are used to implement what I would call the 'fast-jump scroll bar' on collection / table views. I'm not sure what it's actually called but a good example of this can be found on the right side of the contacts tab of the iOS contacts app.

Open to any suggestions on the best way to do this, or potential workarounds! Thanks.

zhubofei commented 6 years ago

@rnystrom Shall we add this feature to 4.0?

rnystrom commented 6 years ago

@zhubofei happy to accept it! Doesn’t have to be crammed into 4.0, but can merge it whenever. Seems like a great feature.

Sent with GitHawk

kronik commented 4 years ago

@rnystrom is it already available?

mohpor commented 3 years ago

Badly need this one.

lorixx commented 3 years ago

@mohpor Feel free to add a new PR for this! :D