Core Data sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the Core Data folder.
- Catalog module label:
Core Data - Coverage: 6 / 6 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Adopting SwiftData for a Core Data app | iOS, iPadOS, Mac Catalyst, macOS | A Swift sample bundle with entry-bearing project variants Trips-Coexistence, Trips-CoreData, Trips-SwiftData, each leading to CoreData APIs. |
View-controller organization, Delegate or data-source callbacks, Actor-isolated state |
| Handling Different Data Types in Core Data | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ViewController → ColorToDataTransformer → CoreData APIs. |
View-controller organization, Delegate or data-source callbacks |
| Linking Data Between Two Core Data Stores | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → FeedbackViewController → CoreData APIs. |
View-controller organization, Delegate or data-source callbacks |
| Sharing Core Data objects between iCloud users | iOS, iPadOS, Mac Catalyst, macOS, watchOS | A Swift sample bundle with entry-bearing project variants CoreDataCloudKitShare, CoreDataCloudKitShareOnWatch, each leading to CoreData APIs. |
View-controller organization, Delegate or data-source callbacks, Binding-based state propagation |
| Showcase App Data in Spotlight | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → FullImageViewController → PhotoProvider → CoreData APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Synchronizing a local store to the cloud | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → DetailViewController → InjectableCLLocationManager → AttachmentProvider → CoreData / CoreDataCloudKitDemo APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| View-controller organization | 6 |
| Delegate or data-source callbacks | 6 |
| Protocol-oriented abstraction | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
View |
24 |
Controller |
17 |
Delegate |
15 |
Provider |
8 |
Transformer |
3 |
App |
2 |
Generator |
2 |
Model |
1 |
Manager |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
1742 |
private |
385 |
public |
20 |
private(set) |
6 |
fileprivate |
1 |
References
Generated from the verified local catalog and completed Markdown documents.