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 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 relationshipsNSManagedObject
: Implements instances of your app's types based on data fromNSManagedObjectModel
NSManagedObjectContext
: Tracks changes to instances of your app's types...