MapKit sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the MapKit folder.
- Catalog module label:
MapKit - Coverage: 9 / 9 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Annotating a Map with Custom Data | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → DetailViewController → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Decluttering a Map with MapKit Annotation Clustering | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ViewController → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Displaying an Indoor Map | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → IndoorMapViewController → MapKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Displaying an updating path of a user’s location history | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → MapViewController → BreadcrumbPathRenderer → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Displaying overlays on a map | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → OverlayViewController → PeakGroundAccelerationOverlayRenderer → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Explore a location with a highly detailed map and Look Around | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ItineraryViewController → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks, Actor-isolated state |
| Interacting with nearby points of interest | iOS, iPadOS, Mac Catalyst, visionOS | A Swift sample bundle with entry-bearing project variants PointsOfInterest-UIKit, PointsOfInterest, each leading to MapKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks, Service object, Binding-based state propagation, Actor-isolated state |
| Optimizing Map Views with Filtering and Camera Constraints | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → AccommodationViewController → MapKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Searching, displaying, and navigating to places | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain MapKitFountainsApp → ContentView → MapKit APIs. |
— |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| View-controller organization | 8 |
| Delegate or data-source callbacks | 8 |
| Protocol-oriented abstraction | 2 |
| Actor-isolated state | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
View |
21 |
Controller |
19 |
Delegate |
14 |
DataSource |
4 |
Renderer |
2 |
App |
2 |
Model |
2 |
Service |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
989 |
private |
217 |
private(set) |
6 |
public |
1 |
References
Generated from the verified local catalog and completed Markdown documents.