What problem does it solve?
Build and maintain data persistence using Core Data for apps that have not adopted SwiftData, covering stack setup, concurrency, batch operations, persistent history tracking, staged migrations, composite attributes, and SwiftData boundary guidance.
Core Features & Use Cases
- Stack Setup and NSPersistentContainer configuration.
- Concurrency rules and threading guidance for background contexts.
- NSFetchedResultsController for list-driven UI.
- Batch Operations: NSBatchInsert/NSBatchDelete/NSBatchUpdate with merge guidelines.
- Persistent History Tracking for multi-target/state synchronization.
- Staged Migration (iOS 17+) with NSStagedMigrationManager.
- Composite Attributes (iOS 17+) and SwiftData coexistence guidance.
- Clear boundary guidance when using SwiftData alongside Core Data.
Quick Start
Create an NSPersistentContainer, configure its store descriptions, and load persistent stores to start using Core Data in your app.