Core Data stack
Manage and persist your app’s model layer.
Overview
Core Data provides a set of classes that collaboratively support your app’s model layer:
An instance of NSManagedObjectModel describes your app’s types, including their properties and relationships.
An instance of NSManagedObjectContext tracks changes to instances of your app’s types.
An instance of NSPersistentStoreCoordinator saves and fetches instances of your app’s types from stores.
[Image]
You use an NSPersistentContainer instance to set up the model, context, and store coordinator simultaneously.
Topics
Stack Setup
Object Modeling
NSManagedObjectModelNSEntityDescriptionNSPropertyDescriptionNSAttributeDescriptionNSDerivedAttributeDescriptionNSRelationshipDescription