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

[Core Data] Can IGListKit be used with Core Data and NSFetchedResultsController? #407

Closed
ybabenko opened this issue Jan 12, 2017 · 2 comments
Labels

Comments

@ybabenko
Copy link

Can IGListKit be used with Core Data and NSFetchedResultsController?

@rnystrom
Copy link
Contributor

@ybabenko Core Data: yes! NSFetchedResultsController: probably not.

NSFetchedResultsController is really designed to be a UITableView's data source with a few other bells & whistles. The majority of NSFRC setups I've seen us it for its animated updates, which IGListKit was built to solve.

IGListKit is really designed to be data-architecture-agnostic. Just feed the adapter some models, provide section controllers for them, and your collection view "just works".

The only thing you have to do with Core Data is make your models conform to IGListDiffable and you're good to go!

NSFRC also wasn't really designed with UICollectionView in mind. @jessesquires actually has a library) that makes it work tho.

@ybabenko
Copy link
Author

@rnystrom Thank you.

@pappalar pappalar mentioned this issue Feb 27, 2017
4 tasks
@jessesquires jessesquires changed the title Can IGListKit be used with Core Data and NSFetchedResultsController? [Core Data] Can IGListKit be used with Core Data and NSFetchedResultsController? Feb 27, 2017
facebook-github-bot pushed a commit that referenced this issue Feb 27, 2017
Summary:
Issue answered: #407 #460 #461

I did not run any tool to generate documentation

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes #515

Differential Revision: D4621212

Pulled By: jessesquires

fbshipit-source-id: 110e3d37d08e7c763b6a6cde70bc83280f7a2bb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants