# hari51215/apple_developer_docs architecture

> Architecture diagram of the GitHub repository hari51215/apple_developer_docs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hari51215/apple_developer_docs
- Repository: https://github.com/hari51215/apple_developer_docs

## Overview

This repository is a learning log of Apple frameworks, with small companion SwiftUI samples rather than one integrated application. Its sample workflows demonstrate AR plane detection and placement, audio recording/effects and MIDI jingles, camera-based scene capture and composition, cooking alarms, App Clip ordering, browser-engine eligibility/data transfer, and local CallKit simulation. The graph groups these independent examples by domain. Source-index references and the excerpts support the shown links; unsampled files are represented by their tree-supported roles, without assuming their internal wiring.

Main entry points: [`AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift`](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift) (Alarm manager), [`AVFAudio/EchoLab/EchoLab/RecorderView.swift`](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/RecorderView.swift) (Recorder and effects UI), [`AVFAudio/EchoLab/EchoLab/AudioEngineManager.swift`](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/AudioEngineManager.swift) (Audio engine), [`AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift`](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift) (Jingle player UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ar["AR placement"]
  node_ar_ui["Placement UI<br/>[ContentView.swift]"]
  node_ar_view["AR view bridge"]
  node_placement["Plane and cube placement"]
end

subgraph group_audio["Audio samples"]
  node_echo_ui["Recorder and effects UI<br/>[RecorderView.swift]"]
  node_echo_engine["Audio engine"]
  node_recording["Recording model<br/>[Recording.swift]"]
  node_recordings_ui["Recordings list"]
  node_effects_ui["Effects rack"]
  node_jingle_ui["Jingle player UI"]
  node_preset["Jingle presets<br/>[JinglePreset.swift]"]
  node_sequence["MIDI sequence manager"]
  node_sfx["Sound effects board<br/>[SFXBoardView.swift]"]
  node_sound_manager["System sound manager"]
end

subgraph group_media["SceneMix media"]
  node_capture["Camera capture"]
  node_record_view["Capture screen<br/>[RecordView.swift]"]
  node_narration["Narration recording"]
  node_narrate_view["Narration screen<br/>[NarrateView.swift]"]
  node_composition["Composition builder"]
  node_export["Export screen<br/>[ExportView.swift]"]
  node_playback["Playback screen<br/>[PlaybackView.swift]"]
end

subgraph group_alarms["Cooking alarms"]
  node_recipes["Recipe selection<br/>[RecipesView.swift]"]
  node_schedule["Alarm scheduling UI"]
  node_alarm_vm["Alarm manager"]
  node_metadata["Cooking metadata"]
  node_active_timers["Active timers"]
  node_live_activity["Timer Live Activity"]
end

subgraph group_ordering["QuickOrder"]
  node_clip_ui["App Clip ordering<br/>[ClipRootView.swift]"]
  node_order_manager["Order manager<br/>[OrderManager.swift]"]
  node_menu["Shared menu<br/>[MenuView.swift]"]
  node_intent["Add-to-order intent"]
end

subgraph group_system["System demos"]
end

node_ar_user(("App user"))
node_media_user(("Media app user"))
node_alarm_user(("Cook"))
node_order_user(("Ordering customer"))

node_ar_user -->|"uses"| node_ar_ui
node_ar_ui -->|"displays"| node_ar_view
node_ar_view -->|"delegates to"| node_placement
node_echo_ui -->|"controls"| node_echo_engine
node_echo_ui -->|"uses"| node_recording
node_echo_ui -->|"shows"| node_recordings_ui
node_effects_ui -->|"controls"| node_echo_engine
node_recordings_ui -->|"reads"| node_echo_engine
node_jingle_ui -->|"controls"| node_sequence
node_jingle_ui -->|"selects"| node_preset
node_sequence -->|"builds from"| node_preset
node_media_user -.->|"records"| node_record_view
node_record_view -.->|"uses"| node_capture
node_narrate_view -.->|"uses"| node_narration
node_export -->|"uses"| node_composition
node_alarm_user -.->|"chooses"| node_recipes
node_recipes -->|"uses"| node_alarm_vm
node_schedule -->|"schedules"| node_alarm_vm
node_active_timers -->|"reads"| node_alarm_vm
node_alarm_vm -->|"creates"| node_metadata
node_live_activity -->|"displays"| node_metadata
node_order_user -.->|"orders through"| node_clip_ui
node_clip_ui -.->|"displays"| node_menu
node_intent -.->|"updates"| node_order_manager

click node_ar_ui "https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/ContentView.swift"
click node_ar_view "https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/ARViewContainer.swift"
click node_placement "https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/PlacementController.swift"
click node_echo_ui "https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/RecorderView.swift"
click node_echo_engine "https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/AudioEngineManager.swift"
click node_recording "https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/Recording.swift"
click node_recordings_ui "https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/RecordingsListView.swift"
click node_effects_ui "https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/EffectsRackView.swift"
click node_jingle_ui "https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift"
click node_preset "https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JinglePreset.swift"
click node_sequence "https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JingleSequenceManager.swift"
click node_sfx "https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/SFXBoardView.swift"
click node_sound_manager "https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/SystemSoundManager.swift"
click node_capture "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/CaptureManager.swift"
click node_record_view "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/RecordView.swift"
click node_narration "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/NarrationRecorder.swift"
click node_narrate_view "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/NarrateView.swift"
click node_composition "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/CompositionBuilder.swift"
click node_export "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/ExportView.swift"
click node_playback "https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/PlaybackView.swift"
click node_recipes "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/RecipesView.swift"
click node_schedule "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/ScheduleAlarmView.swift"
click node_alarm_vm "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift"
click node_metadata "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/CookingMetadata.swift"
click node_active_timers "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/ActiveTimersView.swift"
click node_live_activity "https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimerWidget/ChefTimerLiveActivity.swift"
click node_clip_ui "https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrderClip/ClipRootView.swift"
click node_order_manager "https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrder/OrderManager.swift"
click node_menu "https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/Shared/MenuView.swift"
click node_intent "https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrder/Intents/AddToOrderIntent.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ar_ui,node_ar_view,node_placement,node_ar_user,node_media_user toneBlue
class node_echo_ui,node_echo_engine,node_recording,node_recordings_ui,node_effects_ui,node_jingle_ui,node_preset,node_sequence,node_sfx,node_sound_manager toneAmber
class node_capture,node_record_view,node_narration,node_narrate_view,node_composition,node_export,node_playback toneMint
class node_recipes,node_schedule,node_alarm_vm,node_metadata,node_active_timers,node_live_activity toneRose
class node_clip_ui,node_order_manager,node_menu,node_intent,node_alarm_user,node_order_user toneIndigo
```

## Components

### AR placement

- [Placement UI](https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/ContentView.swift): `ARKit/ARDrop/ARDrop/ContentView.swift`
- [AR view bridge](https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/ARViewContainer.swift): `ARKit/ARDrop/ARDrop/ARViewContainer.swift`
- [Plane and cube placement](https://github.com/hari51215/apple_developer_docs/blob/main/ARKit/ARDrop/ARDrop/PlacementController.swift): `ARKit/ARDrop/ARDrop/PlacementController.swift`

### Audio samples

- [Recorder and effects UI](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/RecorderView.swift): `AVFAudio/EchoLab/EchoLab/RecorderView.swift`
- [Audio engine](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/AudioEngineManager.swift): `AVFAudio/EchoLab/EchoLab/AudioEngineManager.swift`
- [Recording model](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/Recording.swift): `AVFAudio/EchoLab/EchoLab/Recording.swift`
- [Recordings list](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/RecordingsListView.swift): `AVFAudio/EchoLab/EchoLab/RecordingsListView.swift`
- [Effects rack](https://github.com/hari51215/apple_developer_docs/blob/main/AVFAudio/EchoLab/EchoLab/EffectsRackView.swift): `AVFAudio/EchoLab/EchoLab/EffectsRackView.swift`
- [Jingle player UI](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift): `AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift`
- [Jingle presets](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JinglePreset.swift): `AudioToolbox/PixelJingle/PixelJingle/JinglePreset.swift`
- [MIDI sequence manager](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/JingleSequenceManager.swift): `AudioToolbox/PixelJingle/PixelJingle/JingleSequenceManager.swift`
- [Sound effects board](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/SFXBoardView.swift): `AudioToolbox/PixelJingle/PixelJingle/SFXBoardView.swift`
- [System sound manager](https://github.com/hari51215/apple_developer_docs/blob/main/AudioToolbox/PixelJingle/PixelJingle/SystemSoundManager.swift): `AudioToolbox/PixelJingle/PixelJingle/SystemSoundManager.swift`

### SceneMix media

- [Camera capture](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/CaptureManager.swift): `AVFoundation/SceneMix/SceneMix/CaptureManager.swift`
- [Capture screen](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/RecordView.swift): `AVFoundation/SceneMix/SceneMix/RecordView.swift`
- [Narration recording](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/NarrationRecorder.swift): `AVFoundation/SceneMix/SceneMix/NarrationRecorder.swift`
- [Narration screen](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/NarrateView.swift): `AVFoundation/SceneMix/SceneMix/NarrateView.swift`
- [Composition builder](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/CompositionBuilder.swift): `AVFoundation/SceneMix/SceneMix/CompositionBuilder.swift`
- [Export screen](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/ExportView.swift): `AVFoundation/SceneMix/SceneMix/ExportView.swift`
- [Playback screen](https://github.com/hari51215/apple_developer_docs/blob/main/AVFoundation/SceneMix/SceneMix/PlaybackView.swift): `AVFoundation/SceneMix/SceneMix/PlaybackView.swift`

### Cooking alarms

- [Recipe selection](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/RecipesView.swift): `AlarmKit/ChefTimer/ChefTimer/RecipesView.swift`
- [Alarm scheduling UI](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/ScheduleAlarmView.swift): `AlarmKit/ChefTimer/ChefTimer/ScheduleAlarmView.swift`
- [Alarm manager](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift): `AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift`
- [Cooking metadata](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/CookingMetadata.swift): `AlarmKit/ChefTimer/ChefTimer/CookingMetadata.swift`
- [Active timers](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimer/ActiveTimersView.swift): `AlarmKit/ChefTimer/ChefTimer/ActiveTimersView.swift`
- [Timer Live Activity](https://github.com/hari51215/apple_developer_docs/blob/main/AlarmKit/ChefTimer/ChefTimerWidget/ChefTimerLiveActivity.swift): `AlarmKit/ChefTimer/ChefTimerWidget/ChefTimerLiveActivity.swift`

### QuickOrder

- [App Clip ordering](https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrderClip/ClipRootView.swift): `AppClips/QuickOrder/QuickOrderClip/ClipRootView.swift`
- [Order manager](https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrder/OrderManager.swift): `AppClips/QuickOrder/QuickOrder/OrderManager.swift`
- [Shared menu](https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/Shared/MenuView.swift): `AppClips/QuickOrder/Shared/MenuView.swift`
- [Add-to-order intent](https://github.com/hari51215/apple_developer_docs/blob/main/AppClips/QuickOrder/QuickOrder/Intents/AddToOrderIntent.swift): `AppClips/QuickOrder/QuickOrder/Intents/AddToOrderIntent.swift`

### Other components

- **App user**
- **Media app user**
- **Cook**
- **Ordering customer**

## Connections

- App user → Placement UI: uses (evidence: `ARKit/ARDrop/ARDrop/ContentView.swift`)
- Placement UI → AR view bridge: displays (evidence: `ARKit/ARDrop/ARDrop/ContentView.swift`)
- AR view bridge → Plane and cube placement: delegates to (evidence: `ARKit/ARDrop/ARDrop/ARViewContainer.swift`)
- Recorder and effects UI → Audio engine: controls (evidence: `AVFAudio/EchoLab/EchoLab/RecorderView.swift`)
- Recorder and effects UI → Recording model: uses (evidence: `AVFAudio/EchoLab/EchoLab/RecorderView.swift`)
- Recorder and effects UI → Recordings list: shows (evidence: `AVFAudio/EchoLab/EchoLab/RecorderView.swift`)
- Effects rack → Audio engine: controls (evidence: `AVFAudio/EchoLab/EchoLab/EffectsRackView.swift`)
- Recordings list → Audio engine: reads (evidence: `AVFAudio/EchoLab/EchoLab/RecordingsListView.swift`)
- Jingle player UI → MIDI sequence manager: controls (evidence: `AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift`)
- Jingle player UI → Jingle presets: selects (evidence: `AudioToolbox/PixelJingle/PixelJingle/JinglePlayerView.swift`)
- MIDI sequence manager → Jingle presets: builds from (evidence: `AudioToolbox/PixelJingle/PixelJingle/JingleSequenceManager.swift`)
- Media app user → Capture screen: records
- Capture screen → Camera capture: uses
- Narration screen → Narration recording: uses
- Export screen → Composition builder: uses (evidence: `AVFoundation/SceneMix/SceneMix/ExportView.swift`)
- Cook → Recipe selection: chooses
- Recipe selection → Alarm manager: uses (evidence: `AlarmKit/ChefTimer/ChefTimer/RecipesView.swift`)
- Alarm scheduling UI → Alarm manager: schedules (evidence: `AlarmKit/ChefTimer/ChefTimer/ScheduleAlarmView.swift`)
- Active timers → Alarm manager: reads (evidence: `AlarmKit/ChefTimer/ChefTimer/ActiveTimersView.swift`)
- Alarm manager → Cooking metadata: creates (evidence: `AlarmKit/ChefTimer/ChefTimer/AlarmViewModel.swift`)
- Timer Live Activity → Cooking metadata: displays (evidence: `AlarmKit/ChefTimer/ChefTimerWidget/ChefTimerLiveActivity.swift`)
- Ordering customer → App Clip ordering: orders through
- App Clip ordering → Shared menu: displays
- Add-to-order intent → Order manager: updates
