Introducing Core Data
Core Data is Apple's mechanism for saving app data to your device. It provides persistence, undo/redo, background tasks, view synchronization, versioning, and migration. You can define your data types and relationships using Xcode's data model editor, and Core Data will generate class definitions for your data types automatically. Core Data can then create and manage object instances based on the class definitions.
Important Note
You can learn more about Core Data at this link: https://developer.apple.com/documentation/coredata.
Core Data provides a set of classes collectively known as the Core Data stack to manage and persist object instances, which are as follows:
NSManagedObjectModel
Describes your app's types, including their properties and relationships.
NSManagedObject
A class used to implement instances of your app's types based on data from the NSManagedObjectModel
.
NSManagedObjectContext...