CarPlay sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the CarPlay folder.
- Catalog module label:
CarPlay - Coverage: 3 / 3 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Integrating CarPlay with Your Music App | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → AppleMusicAPIController → NowPlayingViewModel → IntentHandler → CarPlay APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Integrating CarPlay with Your Navigation App | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → LoggerViewController → TemplateManager → CarPlay APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Integrating CarPlay with your quick-ordering app | iOS, iPadOS, Mac Catalyst, macOS | A Swift sample with the source-visible chain HoagiePushServerApp → ContentView → TemplateManager → OrderingService → CarPlay APIs. |
Protocol-oriented abstraction, Delegate or data-source callbacks, Service object, Actor-isolated state |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| Protocol-oriented abstraction | 3 |
| Delegate or data-source callbacks | 3 |
| View-controller organization | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
Delegate |
11 |
View |
10 |
Controller |
5 |
Manager |
3 |
App |
2 |
Handler |
1 |
ViewModel |
1 |
Provider |
1 |
Service |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
822 |
private |
84 |
private(set) |
5 |
public |
4 |
internal |
3 |
fileprivate |
3 |
References
Generated from the verified local catalog and completed Markdown documents.