Instagram / Instagram/IGListKit

Add "cell for view model" API to binding section controller

Open
#801 4 comments 0 reactions 0 assignees View on GitHub
enhancement starter-task
Dominant language
Objective-C
Stars
13.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

We should have a public API to get a cell given a view model in the [binding section controller](https://github.com/Instagram/IGListKit/blob/master/Source/IGListBindingSectionController.h).

Question, how do we make this an O(1) operation? Right now we store an [array of view models](https://github.com/Instagram/IGListKit/blob/master/Source/IGListBindingSectionController.h#L72), but we'd have to do `indexOfObject:` to get the index, which is O(n).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.