Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

MarvinNazari
Copy link
Contributor

@MarvinNazari MarvinNazari commented Jul 29, 2017

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

  • All tests pass. Demo project builds and runs.
  • I added tests, an experiment, or detailed why my change isn't tested.
  • I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
  • I have reviewed the contributing guide

animated:(BOOL)animated
scrollPosition:(UICollectionViewScrollPosition)scrollPosition {
const NSInteger offsetIndex = [self relativeIndexForSectionController:sectionController fromLocalIndex:index];
[self.collectionContext selectItemAtIndex:offsetIndex sectionController:self animated:animated scrollPosition:scrollPosition];
Copy link
Contributor

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 😃

@jessesquires jessesquires added this to the 3.1.0 milestone Aug 3, 2017
@jessesquires
Copy link
Contributor

nice! 🎉

@facebook-github-bot
Copy link
Contributor

@MarvinNazari updated the pull request - view changes

@facebook-github-bot
Copy link
Contributor

@MarvinNazari updated the pull request - view changes

@facebook-github-bot
Copy link
Contributor

@MarvinNazari updated the pull request - view changes

@facebook-github-bot
Copy link
Contributor

@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants