jessesquires / jessesquires/JSQCoreDataKit

Implement `FetchedResultsCoordinator` a wrapper for `FetchedResultsController`/`Delegate`

Open
#201 0 comments 0 reactions 1 assignee Claimed by @jessesquires View on GitHub
feature request
Dominant language
Swift
Stars
617
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The goal is to remove all boilerplate with FRC.

The `FetchedResultsCoordinator` will:

- create and own the `NSFetchedResultsController`
- be the controller's delegate, implement `NSFetchedResultsControllerDelegate`
- be the dataSource via DiffableDataSource APIs
- UICollectionView only

### Todo

- [x] implement initial `FetchedResultsCoordinator` (get working with configuring cells)
- [x] update example project
- [x] add support for supplementary views
- [ ] cell interaction: didSelect, etc.
- [ ] cell swipe actions (delete, favorite)
- [ ] data source prefetching?
- [ ] update guides
- [ ] add docs
- [ ] add tests

#### Notes & docs:

- https://www.avanderlee.com/swift/diffable-data-sources-core-data/

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.