Alternative to Realm Data. It is iOS native library.
Whole flow summary
In Core Data, we first create an
NSPersistentContainer, which loads our.xcdatamodeldfile. We usually access it through a shared singletonPersistenceController. From the container, we get anNSManagedObjectContext, which acts as the working area for Core Data operations. We then use that context to create or fetch managed objects generated from our.xcdatamodeldentities, such asUserorTodoItem. After accessing or modifying the object's properties, Core Data automatically tracks those changes, and when we callcontext.save(), the changes are persisted to the underlying store.
.xcdatamodeld?NSPersistentContainer?NSManagedObjectContext?NSManagedObject?