A big rewrite of ResultsController centralizes logic in a base controller and allows usage with entities other than Core Data.
This does impose some breaking changes, including:
sortDescriptors now uses a new type ([SortDescriptor]) to sort elements. The NS descriptors set on fetch requests will still be used for initial fetches but not thereafter
Section key paths set after initialization must be set via setSectionKeyPath(_:)
Various methods and properties have been updated
CollectionViewProvider [WIP]
View Source
This new class helps wrap up the common connection between a results controller and a collection view. Because MutableResultsController can also be used with any class and manual updates are pushed through to the delegate working with any data set can be easy and consistent.
Example App
The example app has been rewritten to support the results controller changes along with some UI improvements
Results Controller
A big rewrite of ResultsController centralizes logic in a base controller and allows usage with entities other than Core Data.
This does impose some breaking changes, including:
sortDescriptors
now uses a new type ([SortDescriptor]
) to sort elements. The NS descriptors set on fetch requests will still be used for initial fetches but not thereaftersetSectionKeyPath(_:)
CollectionViewProvider [WIP]
View Source This new class helps wrap up the common connection between a results controller and a collection view. Because MutableResultsController can also be used with any class and manual updates are pushed through to the delegate working with any data set can be easy and consistent.
Example App
The example app has been rewritten to support the results controller changes along with some UI improvements
Also, more tests 🎉