ShazamKit sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the ShazamKit folder.
- Catalog module label:
ShazamKit - Coverage: 2 / 2 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Building a Custom Catalog and Matching Audio | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain FoodMathApp → ContentView → CatalogProvider → ShazamKit APIs. |
Delegate or data-source callbacks, SwiftUI environment injection, Binding-based state propagation, Publisher-backed observable state |
| ShazamKit Dance Finder with Managed Session | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain ShazamKitDanceFinderApp → ContentView → NowPlayingViewModel → ResourcesProvider → ShazamKit APIs. |
Model-View-ViewModel, Delegate or data-source callbacks, Coordinator, SwiftUI environment injection, Publisher-backed observable state |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| Delegate or data-source callbacks | 2 |
| SwiftUI environment injection | 2 |
| Publisher-backed observable state | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
View |
18 |
App |
2 |
Provider |
2 |
Operation |
1 |
Coordinator |
1 |
Handler |
1 |
ViewModel |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
383 |
private |
65 |
fileprivate |
3 |
private(set) |
1 |
References
Generated from the verified local catalog and completed Markdown documents.