# siddartha-anumandla/swiftquest architecture

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

- Interactive diagram: https://gitdiagram.com/siddartha-anumandla/swiftquest
- Repository: https://github.com/siddartha-anumandla/swiftquest

## Overview

SwiftQuest is an early-stage Swift-learning game, but the checked-in runtime currently implements only launch and a home/profile-avatar interaction. The principal workflow is app launch → animated splash → home header → avatar picker → selected avatar reflected on the header. The README describes lessons, practice, gamification, and profile progress as planned capabilities; those modules are absent from the tree, so they are not represented as implemented components. Edges reflect the shown SwiftUI calls and state bindings.

Main entry points: [`SwiftQuest/Features/Home/Components/HomeHeaderView.swift`](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/HomeHeaderView.swift) (Home header), [`SwiftQuest/Features/Home/Views/HomeView.swift`](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Views/HomeView.swift) (Home screen), [`SwiftQuest/Features/Home/Components/AvatarSelectionView.swift`](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/AvatarSelectionView.swift) (Avatar picker), [`SwiftQuest/App/SplashView.swift`](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/SplashView.swift) (Splash screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_app_entry["App entry"]
  node_root["Scene router<br/>[RootView.swift]"]
  node_splash["Splash screen<br/>[SplashView.swift]"]
end

subgraph group_home["Home experience"]
  node_home_view["Home screen<br/>[HomeView.swift]"]
  node_header["Home header"]
  node_avatar_picker["Avatar picker"]
  node_avatar_model["Avatar choices<br/>[Avatar.swift]"]
end

subgraph group_shared["Shared presentation"]
  node_typography["Typography<br/>[SQTypography.swift]"]
  node_colors["Color theme<br/>[AppColors.swift]"]
  node_screen_layout["Screen sizing<br/>[ScreenLayout.swift]"]
  node_greeting["Greeting text"]
end

node_user(("App user"))

node_user -->|"launches"| node_app_entry
node_app_entry -->|"shows"| node_root
node_root -->|"shows"| node_splash
node_splash -->|"finishes"| node_root
node_root -->|"shows"| node_home_view
node_home_view -->|"renders"| node_header
node_header -->|"opens picker"| node_home_view
node_home_view -->|"presents"| node_avatar_picker
node_avatar_picker -->|"enumerates"| node_avatar_model
node_avatar_picker -->|"updates selection"| node_home_view
node_home_view -->|"stores selection"| node_avatar_model
node_header -->|"displays avatar"| node_avatar_model
node_header -->|"reads greeting"| node_greeting
node_header -->|"styles text"| node_typography
node_avatar_picker -->|"styles text"| node_typography
node_header -->|"uses palette"| node_colors
node_avatar_picker -->|"uses palette"| node_colors
node_splash -->|"uses palette"| node_colors
node_splash -->|"uses sizing"| node_screen_layout

click node_app_entry "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/SwiftQuestApp.swift"
click node_root "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/RootView.swift"
click node_splash "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/SplashView.swift"
click node_home_view "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Views/HomeView.swift"
click node_header "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/HomeHeaderView.swift"
click node_avatar_picker "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/AvatarSelectionView.swift"
click node_avatar_model "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Models/Avatar.swift"
click node_typography "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Fonts/SQTypography.swift"
click node_colors "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Themes/AppColors.swift"
click node_screen_layout "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Themes/ScreenLayout.swift"
click node_greeting "https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Shared/Components/GreetingMessageConstant.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_app_entry,node_root,node_splash,node_user toneBlue
class node_home_view,node_header,node_avatar_picker,node_avatar_model toneAmber
class node_typography,node_colors,node_screen_layout,node_greeting toneMint
```

## Components

### App flow

- [App entry](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/SwiftQuestApp.swift): `SwiftQuest/App/SwiftQuestApp.swift`
- [Scene router](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/RootView.swift): `SwiftQuest/App/RootView.swift`
- [Splash screen](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/App/SplashView.swift): `SwiftQuest/App/SplashView.swift`

### Home experience

- [Home screen](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Views/HomeView.swift): `SwiftQuest/Features/Home/Views/HomeView.swift`
- [Home header](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/HomeHeaderView.swift): `SwiftQuest/Features/Home/Components/HomeHeaderView.swift`
- [Avatar picker](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Components/AvatarSelectionView.swift): `SwiftQuest/Features/Home/Components/AvatarSelectionView.swift`
- [Avatar choices](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Features/Home/Models/Avatar.swift): `SwiftQuest/Features/Home/Models/Avatar.swift`

### Shared presentation

- [Typography](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Fonts/SQTypography.swift): `SwiftQuest/Resources/Fonts/SQTypography.swift`
- [Color theme](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Themes/AppColors.swift): `SwiftQuest/Resources/Themes/AppColors.swift`
- [Screen sizing](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Resources/Themes/ScreenLayout.swift): `SwiftQuest/Resources/Themes/ScreenLayout.swift`
- [Greeting text](https://github.com/siddartha-anumandla/swiftquest/blob/main/SwiftQuest/Shared/Components/GreetingMessageConstant.swift): `SwiftQuest/Shared/Components/GreetingMessageConstant.swift`

### Other components

- **App user**

## Connections

- App user → App entry: launches
- App entry → Scene router: shows (evidence: `SwiftQuest/App/SwiftQuestApp.swift`)
- Scene router → Splash screen: shows (evidence: `SwiftQuest/App/RootView.swift`)
- Splash screen → Scene router: finishes (evidence: `SwiftQuest/App/RootView.swift`)
- Scene router → Home screen: shows (evidence: `SwiftQuest/App/RootView.swift`)
- Home screen → Home header: renders (evidence: `SwiftQuest/Features/Home/Views/HomeView.swift`)
- Home header → Home screen: opens picker (evidence: `SwiftQuest/Features/Home/Views/HomeView.swift`)
- Home screen → Avatar picker: presents (evidence: `SwiftQuest/Features/Home/Views/HomeView.swift`)
- Avatar picker → Avatar choices: enumerates (evidence: `SwiftQuest/Features/Home/Components/AvatarSelectionView.swift`)
- Avatar picker → Home screen: updates selection (evidence: `SwiftQuest/Features/Home/Views/HomeView.swift`)
- Home screen → Avatar choices: stores selection (evidence: `SwiftQuest/Features/Home/Views/HomeView.swift`)
- Home header → Avatar choices: displays avatar (evidence: `SwiftQuest/Features/Home/Components/HomeHeaderView.swift`)
- Home header → Greeting text: reads greeting (evidence: `SwiftQuest/Features/Home/Components/HomeHeaderView.swift`)
- Home header → Typography: styles text (evidence: `SwiftQuest/Features/Home/Components/HomeHeaderView.swift`)
- Avatar picker → Typography: styles text (evidence: `SwiftQuest/Features/Home/Components/AvatarSelectionView.swift`)
- Home header → Color theme: uses palette (evidence: `SwiftQuest/Features/Home/Components/HomeHeaderView.swift`)
- Avatar picker → Color theme: uses palette (evidence: `SwiftQuest/Features/Home/Components/AvatarSelectionView.swift`)
- Splash screen → Color theme: uses palette (evidence: `SwiftQuest/App/SplashView.swift`)
- Splash screen → Screen sizing: uses sizing (evidence: `SwiftQuest/App/SplashView.swift`)
