Core ML sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the Core ML folder.
- Catalog module label:
Core ML - Coverage: 7 / 7 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Classifying Images with Vision and Core ML | iOS, iPadOS, Mac Catalyst, iPad | A Swift sample with the source-visible chain AppDelegate → MainViewController → UIKit / Vision APIs. |
View-controller organization, Delegate or data-source callbacks |
| Detecting human body poses in an image | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ConfigurationViewController → PopOverPresentationManager → CoreML APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks, Builder |
| Finding answers to questions in a text document | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → DetailViewController → Document → CoreML APIs. |
View-controller organization, Delegate or data-source callbacks |
| Integrating a Core ML Model into Your App | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ViewController → CoreML APIs. |
View-controller organization, Delegate or data-source callbacks |
| Personalizing a Model with On-Device Updates | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → CreateNewStickerViewController → CoreML APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Understanding a Dice Roll with Vision and Object Detection | iOS, iPadOS, Mac Catalyst, iPad | A Swift sample with the source-visible chain AppDelegate → ViewController → ThresholdProvider → UIKit / Vision APIs. |
View-controller organization, Delegate or data-source callbacks |
| Using Core ML for semantic image segmentation | iOS, iPadOS, Mac Catalyst, macOS | A Swift sample with the source-visible chain SegmentationApp → MainView → ViewModel → CoreML APIs. |
Model-View-ViewModel, Binding-based state propagation, Publisher-backed observable state, Actor-isolated state |
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 |
|---|---|
Controller |
13 |
Delegate |
10 |
View |
4 |
DataSource |
4 |
Builder |
1 |
Manager |
1 |
Document |
1 |
Provider |
1 |
App |
1 |
ViewModel |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
700 |
private |
73 |
private(set) |
7 |
public |
7 |
open |
1 |
References
Generated from the verified local catalog and completed Markdown documents.