Wrapping Up

The NSFetchedResultsController is a great time-saver when we’re working with a UITableView. It can drastically reduce the amount of code we need to write and make our UITableView instances perform very well. However, it has a narrowly focused purpose, and it should be avoided when you’re not working with a UITableView. Fortunately, with a little bit of effort, we can duplicate quite a bit of its functionality and create a highly flexible class that fits into a variety of situations.

Get Core Data in Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.