# concop19/dailymate_ios architecture

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

- Interactive diagram: https://gitdiagram.com/concop19/dailymate_ios
- Repository: https://github.com/concop19/dailymate_ios

## Overview

Dailymate is a SwiftUI meal-discovery app. Its principal workflow takes a signed-in user through profile and taste onboarding, then presents weather-aware meal suggestions and lets the user refine them by ingredients before browsing dishes. Dish detail, cooking steps, and meal history are distinct product areas present in the source tree. The excerpts establish app routing, onboarding progression, authentication, and parts of home navigation; several feature implementations were not sampled, so their internal links are left unverified.

Main entry points: [`dailymate/Features/Onboarding/OnboardingFeature.swift`](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/OnboardingFeature.swift) (Onboarding coordinator), [`dailymate/App/AppFeature.swift`](https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppFeature.swift) (App coordinator), [`dailymate/Features/Home/HomeFeature.swift`](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/HomeFeature.swift) (Home and suggestions), [`dailymate/App/AppView.swift`](https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppView.swift) (App screen routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_appfeature["App coordinator<br/>[AppFeature.swift]"]
  node_appview["App screen routing<br/>[AppView.swift]"]
end

subgraph group_identity["Identity and profile"]
  node_auth["Sign-in and account<br/>[AuthFeature.swift]"]
  node_authclient["Auth provider client<br/>[AuthClient.swift]"]
  node_supabase["Supabase service"]
  node_profile["Profile bootstrap"]
  node_local[("Cached profile and drafts<br/>[LocalClient.swift]")]
end

subgraph group_onboarding["Taste onboarding"]
  node_onboarding["Onboarding coordinator"]
  node_personal["Personal details"]
  node_region["Region selection"]
  node_diet["Diet and allergies"]
  node_flashcards["Dish taste votes"]
  node_summary["Taste summary"]
  node_draft["Onboarding draft"]
  node_mapper["Profile data mapping"]
  node_onboardingapi["Onboarding API"]
end

subgraph group_discovery["Meal discovery"]
  node_home["Home and suggestions<br/>[HomeFeature.swift]"]
  node_weather["Weather data<br/>[HomeClient.swift]"]
  node_searchparams["Search parameter builder"]
  node_ingredients["Ingredient selection"]
  node_dishlist["Dish results"]
  node_backend["Backend requests"]
end

subgraph group_meal["Meal journey"]
  node_dishdetail["Dish detail"]
  node_cooking["Cooking steps"]
  node_history["Dish history"]
end

node_user(("User"))

node_user -->|"uses"| node_appview
node_appview -->|"sends actions"| node_appfeature
node_appview -->|"shows when signed out"| node_auth
node_appview -->|"shows onboarding"| node_onboarding
node_appview -->|"shows home"| node_home
node_appfeature -->|"scopes feature"| node_auth
node_appfeature -->|"scopes feature"| node_home
node_appfeature -->|"observes auth state"| node_authclient
node_appfeature -->|"loads startup profile"| node_profile
node_appfeature -->|"reads cached profile"| node_local
node_auth -->|"performs auth actions"| node_authclient
node_authclient -->|"calls auth service"| node_supabase
node_profile -->|"uses client"| node_supabase
node_appfeature -.->|"routes after profile"| node_onboarding
node_onboarding -->|"scopes stage"| node_personal
node_onboarding -->|"creates next stage"| node_region
node_onboarding -->|"creates next stage"| node_diet
node_onboarding -->|"advances stage"| node_flashcards
node_onboarding -->|"advances stage"| node_summary
node_onboarding -->|"updates and saves"| node_draft
node_onboardingapi -->|"maps API data"| node_mapper
node_mapper -->|"maps draft"| node_draft
node_onboarding -.->|"submits completed profile"| node_profile
node_home -.->|"fetches weather"| node_weather
node_home -->|"builds search params"| node_searchparams
node_home -.->|"opens ingredient flow"| node_ingredients
node_home -->|"opens dish results"| node_dishlist
node_dishlist -.->|"requests results"| node_backend
node_dishlist -.->|"opens selected dish"| node_dishdetail
node_dishdetail -.->|"opens cooking steps"| node_cooking
node_dishdetail -.->|"records meal activity"| node_history

click node_appfeature "https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppFeature.swift"
click node_appview "https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppView.swift"
click node_auth "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Auth/AuthFeature.swift"
click node_authclient "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/AuthClient.swift"
click node_supabase "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/SupabaseClient.swift"
click node_profile "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/OnboardingSupabaseClient.swift"
click node_local "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/LocalClient.swift"
click node_onboarding "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/OnboardingFeature.swift"
click node_personal "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage1PersonalFeature.swift"
click node_region "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage2RegionFeature.swift"
click node_diet "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage3DietAllergyFeature.swift"
click node_flashcards "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage4FlashcardsFeature.swift"
click node_summary "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage5TasteSummaryFeature.swift"
click node_draft "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Models/OnboardingDraft.swift"
click node_mapper "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/DTO/OnboardingMapper.swift"
click node_onboardingapi "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Client/OnboardingAPIClient.swift"
click node_home "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/HomeFeature.swift"
click node_weather "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/Client/HomeClient.swift"
click node_searchparams "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/Client/SearchParamsBuilder.swift"
click node_ingredients "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/IngredientChossing/IngredientChossingFeatures.swift"
click node_dishlist "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Dishes/DishListFeature.swift"
click node_backend "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/BackendClient.swift"
click node_dishdetail "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/DishDetail/DishDetailFeatures.swift"
click node_cooking "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/CookingSteps/CookingStepsFeatures.swift"
click node_history "https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/History/DishHistoryFeatures.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_appfeature,node_appview,node_user toneBlue
class node_auth,node_authclient,node_supabase,node_profile,node_local toneAmber
class node_onboarding,node_personal,node_region,node_diet,node_flashcards,node_summary,node_draft,node_mapper,node_onboardingapi toneMint
class node_home,node_weather,node_searchparams,node_ingredients,node_dishlist,node_backend toneRose
class node_dishdetail,node_cooking,node_history toneIndigo
```

## Components

### App flow

- [App coordinator](https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppFeature.swift): `dailymate/App/AppFeature.swift`
- [App screen routing](https://github.com/concop19/dailymate_ios/blob/main/dailymate/App/AppView.swift): `dailymate/App/AppView.swift`

### Identity and profile

- [Sign-in and account](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Auth/AuthFeature.swift): `dailymate/Features/Auth/AuthFeature.swift`
- [Auth provider client](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/AuthClient.swift): `dailymate/Core/Clients/AuthClient.swift`
- [Supabase service](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/SupabaseClient.swift): `dailymate/Core/Clients/SupabaseClient.swift`
- [Profile bootstrap](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/OnboardingSupabaseClient.swift): `dailymate/Core/Clients/OnboardingSupabaseClient.swift`
- [Cached profile and drafts](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/LocalClient.swift): `dailymate/Core/Clients/LocalClient.swift`

### Taste onboarding

- [Onboarding coordinator](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/OnboardingFeature.swift): `dailymate/Features/Onboarding/OnboardingFeature.swift`
- [Personal details](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage1PersonalFeature.swift): `dailymate/Features/Onboarding/Stages/Stage1PersonalFeature.swift`
- [Region selection](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage2RegionFeature.swift): `dailymate/Features/Onboarding/Stages/Stage2RegionFeature.swift`
- [Diet and allergies](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage3DietAllergyFeature.swift): `dailymate/Features/Onboarding/Stages/Stage3DietAllergyFeature.swift`
- [Dish taste votes](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage4FlashcardsFeature.swift): `dailymate/Features/Onboarding/Stages/Stage4FlashcardsFeature.swift`
- [Taste summary](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Stages/Stage5TasteSummaryFeature.swift): `dailymate/Features/Onboarding/Stages/Stage5TasteSummaryFeature.swift`
- [Onboarding draft](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Models/OnboardingDraft.swift): `dailymate/Core/Models/OnboardingDraft.swift`
- [Profile data mapping](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/DTO/OnboardingMapper.swift): `dailymate/Core/Clients/DTO/OnboardingMapper.swift`
- [Onboarding API](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Onboarding/Client/OnboardingAPIClient.swift): `dailymate/Features/Onboarding/Client/OnboardingAPIClient.swift`

### Meal discovery

- [Home and suggestions](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/HomeFeature.swift): `dailymate/Features/Home/HomeFeature.swift`
- [Weather data](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/Client/HomeClient.swift): `dailymate/Features/Home/Client/HomeClient.swift`
- [Search parameter builder](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/Client/SearchParamsBuilder.swift): `dailymate/Features/Home/Client/SearchParamsBuilder.swift`
- [Ingredient selection](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Home/IngredientChossing/IngredientChossingFeatures.swift): `dailymate/Features/Home/IngredientChossing/IngredientChossingFeatures.swift`
- [Dish results](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/Dishes/DishListFeature.swift): `dailymate/Features/Dishes/DishListFeature.swift`
- [Backend requests](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Core/Clients/BackendClient.swift): `dailymate/Core/Clients/BackendClient.swift`

### Meal journey

- [Dish detail](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/DishDetail/DishDetailFeatures.swift): `dailymate/Features/DishDetail/DishDetailFeatures.swift`
- [Cooking steps](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/CookingSteps/CookingStepsFeatures.swift): `dailymate/Features/CookingSteps/CookingStepsFeatures.swift`
- [Dish history](https://github.com/concop19/dailymate_ios/blob/main/dailymate/Features/History/DishHistoryFeatures.swift): `dailymate/Features/History/DishHistoryFeatures.swift`

### Other components

- **User**

## Connections

- User → App screen routing: uses (evidence: `dailymate/App/AppView.swift`)
- App screen routing → App coordinator: sends actions (evidence: `dailymate/App/AppView.swift`)
- App screen routing → Sign-in and account: shows when signed out (evidence: `dailymate/App/AppView.swift`)
- App screen routing → Onboarding coordinator: shows onboarding (evidence: `dailymate/App/AppView.swift`)
- App screen routing → Home and suggestions: shows home (evidence: `dailymate/App/AppView.swift`)
- App coordinator → Sign-in and account: scopes feature (evidence: `dailymate/App/AppFeature.swift`)
- App coordinator → Home and suggestions: scopes feature (evidence: `dailymate/App/AppFeature.swift`)
- App coordinator → Auth provider client: observes auth state (evidence: `dailymate/App/AppFeature.swift`)
- App coordinator → Profile bootstrap: loads startup profile (evidence: `dailymate/App/AppFeature.swift`)
- App coordinator → Cached profile and drafts: reads cached profile (evidence: `dailymate/App/AppFeature.swift`)
- Sign-in and account → Auth provider client: performs auth actions (evidence: `dailymate/Features/Auth/AuthFeature.swift`)
- Auth provider client → Supabase service: calls auth service (evidence: `dailymate/Core/Clients/AuthClient.swift`)
- Profile bootstrap → Supabase service: uses client (evidence: `dailymate/Core/Clients/OnboardingSupabaseClient.swift`)
- App coordinator → Onboarding coordinator: routes after profile (evidence: `dailymate/App/AppFeature.swift`)
- Onboarding coordinator → Personal details: scopes stage (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding coordinator → Region selection: creates next stage (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding coordinator → Diet and allergies: creates next stage (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding coordinator → Dish taste votes: advances stage (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding coordinator → Taste summary: advances stage (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding coordinator → Onboarding draft: updates and saves (evidence: `dailymate/Features/Onboarding/OnboardingFeature.swift`)
- Onboarding API → Profile data mapping: maps API data (evidence: `dailymate/Features/Onboarding/Client/OnboardingAPIClient.swift`)
- Profile data mapping → Onboarding draft: maps draft (evidence: `dailymate/Core/Clients/DTO/OnboardingMapper.swift`)
- Onboarding coordinator → Profile bootstrap: submits completed profile
- Home and suggestions → Weather data: fetches weather
- Home and suggestions → Search parameter builder: builds search params (evidence: `dailymate/Features/Home/Client/SearchParamsBuilder.swift`)
- Home and suggestions → Ingredient selection: opens ingredient flow
- Home and suggestions → Dish results: opens dish results (evidence: `dailymate/Features/Home/HomeFeature.swift`)
- Dish results → Backend requests: requests results
- Dish results → Dish detail: opens selected dish
- Dish detail → Cooking steps: opens cooking steps
- Dish detail → Dish history: records meal activity
