ARKit sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the ARKit folder.
- Catalog module label:
ARKit - Coverage: 25 / 25 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Adding realistic reflections to an AR experience | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Building local experiences with room tracking | visionOS | A Swift sample with the source-visible chain ARKitRoomTrackingApp → ContentView → ARKit APIs. |
Actor-isolated state |
| Capturing Body Motion in 3D | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Combining user face-tracking and world tracking | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Creating a collaborative session | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → MultipeerSession → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Creating a fog effect using scene depth | iOS, iPadOS | A C/Objective-C header, Metal, Swift sample with the source-visible chain AppDelegate → ViewController → RenderDestinationProvider → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Creating a multiuser AR experience | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → MultipeerSession → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Creating an immersive ar experience with audio | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Creating screen annotations for objects in an AR experience | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Detecting Images in an AR Experience | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → StatusViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Displaying a point cloud using scene depth | iOS, iPadOS | A Metal, Swift sample with the source-visible chain PointCloudDepthSample → MetalDepthView → MTKCoordinator → ARProvider → ARKit APIs. |
Protocol-oriented abstraction, Delegate or data-source callbacks, Coordinator, Binding-based state propagation |
| Effecting People Occlusion in Custom Renderers | iOS, iPadOS | A C/Objective-C header, Metal, Swift sample with the source-visible chain AppDelegate → ViewController → RenderDestinationProvider → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Occluding virtual content with people | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Placing objects and handling 3D interaction | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → StatusViewController → VirtualObjectLoader → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Recognizing and Labeling Arbitrary Objects | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → StatusViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Saving and loading world data | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Scanning and Detecting 3D Objects | iOS, iPadOS | A Metal, Swift sample with the source-visible chain AppDelegate → ShareScanViewController → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Streaming an AR experience | iOS, iPadOS | A C/Objective-C header, Metal, Swift sample with the source-visible chain AppDelegate → OverlayViewController → Renderer → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Tracking a handheld accessory as a virtual sculpting tool | visionOS | A C/Objective-C header, Metal, Swift sample with the source-visible chain SpatialSculptingApp → ContentView → HapticsModel → ComputeDispatchSystem → ARKit APIs. |
Protocol-oriented abstraction, Actor-isolated state |
| Tracking accessories in volumetric windows | visionOS | A Swift sample with the source-visible chain TrackingAccessoriesApp → AccessoryTrackingView → AccessoryTrackingModel → ThrowSpeedTracker → ARKit APIs. |
View-controller organization, Actor-isolated state |
| Tracking and altering images | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Tracking and visualizing faces | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Tracking and visualizing planes | iOS, iPadOS | A Metal, Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
| Tracking geographic locations in AR | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Visualizing and interacting with a reconstructed scene | iOS, iPadOS | A Swift sample with the source-visible chain AppDelegate → ViewController → ARKit APIs. |
View-controller organization, Delegate or data-source callbacks |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| View-controller organization | 22 |
| Delegate or data-source callbacks | 22 |
| Protocol-oriented abstraction | 11 |
| Actor-isolated state | 3 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
Controller |
29 |
Delegate |
26 |
View |
12 |
App |
3 |
Session |
3 |
Provider |
3 |
Renderer |
3 |
Component |
3 |
Model |
3 |
System |
3 |
Coordinator |
1 |
Loader |
1 |
Processor |
1 |
Document |
1 |
Tracker |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
2961 |
private |
341 |
private(set) |
20 |
fileprivate |
19 |
internal |
12 |
public |
11 |
References
Generated from the verified local catalog and completed Markdown documents.