Core Data is Apple's widely used persistence framework. It has been around for more than a decade and has earned its stripes. Getting stared with Core Data isn't as difficult as many developers make you believe as long as you take the time to learn the basics. In this episode, I show you how to add Core Data to an existing Swift project.
In the previous episode of Adding Core Data to an Existing Swift Project, we added a data model to the project and set up the Core Data stack, using the NSPersistentContainer class. In this episode, you learn how to save data to a persistent store.
In the previous episode of Adding Core Data to an Existing Swift Project, we saved data to the persistent store, a SQLite database. In this episode, we fetch the books stored in the persistent store and update the label of the books view controller.