-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select an item through IGListCollectionContext #874
Conversation
animated:(BOOL)animated | ||
scrollPosition:(UICollectionViewScrollPosition)scrollPosition { | ||
const NSInteger offsetIndex = [self relativeIndexForSectionController:sectionController fromLocalIndex:index]; | ||
[self.collectionContext selectItemAtIndex:offsetIndex sectionController:self animated:animated scrollPosition:scrollPosition]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarvinNazari can we get a unit test for this too? Once we have that we're good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 😃
nice! 🎉 |
@MarvinNazari updated the pull request - view changes |
@MarvinNazari updated the pull request - view changes |
@MarvinNazari updated the pull request - view changes |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Changes in this pull request
We already had a API to deselect an item through
IGListCollectionContext
this is the support for selecting an item.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.