# abdullah-238/stores-land architecture

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

- Interactive diagram: https://gitdiagram.com/abdullah-238/stores-land
- Repository: https://github.com/abdullah-238/stores-land

## Overview

StoreLand is an iOS app for discovering stores by category, viewing store details, saving stores, and rating them; signed-in users can also manage their profiles and store listings. The main discovery path runs from the home screen through categories and store results to store details, with saved-store and rating actions branching from details. Account and sign-in flows provide separate user and listing-management capabilities. Edges reflect excerpted calls and indexed references; unsampled API and location-storage internals are not expanded.

Main entry points: [`StoreLand/StoreLand/CategoryView/CategoryViewController.swift`](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/CategoryView/CategoryViewController.swift) (Categories), [`StoreLand/StoreLand/StoresView/StoresViewController.swift`](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoresView/StoresViewController.swift) (Store results), [`StoreLand/StoreLand/Account/AccountViewController.swift`](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/AccountViewController.swift) (Account menu), [`StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift`](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift) (My stores)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Store discovery"]
  node_home["Home choices"]
  node_categories["Categories"]
  node_category_cell["Category cell"]
  node_stores["Store results"]
  node_store_cell["Store card"]
  node_details["Store details"]
  node_rating["Store rating"]
  node_tabs["Tabbed home"]
end

subgraph group_account["Account and listings"]
  node_account["Account menu"]
  node_my_stores["My stores"]
  node_my_store_detail["Owned store detail"]
  node_new_store["Store editor"]
  node_saved_stores["Saved stores"]
  node_my_store_cell["Account store card"]
end

subgraph group_identity["Sign-in"]
  node_signup["Sign-up"]
  node_signin["Sign-in"]
end

subgraph group_services["Domain services"]
  node_category_service["Category data<br/>[clsCategory.swift]"]
  node_store_service["Store data<br/>[clsStore.swift]"]
  node_saved_service["Saved-store data"]
  node_rate_service["Rating data<br/>[clsRate.swift]"]
  node_store_write_service["Store submission"]
end

node_user(("App user"))

node_user -->|"chooses stores"| node_home
node_home -->|"opens categories"| node_categories
node_categories -->|"fetches names"| node_category_service
node_categories -->|"renders"| node_category_cell
node_categories -->|"opens category"| node_stores
node_stores -->|"fetches stores"| node_store_service
node_stores -->|"renders"| node_store_cell
node_stores -->|"opens selected"| node_details
node_details -->|"checks and saves"| node_saved_service
node_details -->|"opens rating"| node_rating
node_rating -->|"loads and writes"| node_rate_service
node_rating -->|"updates aggregate"| node_store_service
node_user -.->|"opens account"| node_account
node_account -->|"opens listings"| node_my_stores
node_account -->|"opens editor"| node_new_store
node_account -->|"opens saved"| node_saved_stores
node_my_stores -->|"fetches owned"| node_store_service
node_my_stores -->|"renders"| node_my_store_cell
node_my_stores -->|"opens selected"| node_my_store_detail
node_saved_stores -->|"fetches saved"| node_saved_service
node_saved_stores -->|"renders"| node_my_store_cell
node_saved_stores -->|"opens selected"| node_details
node_new_store -->|"submits listing"| node_store_write_service
node_user -.->|"creates account"| node_signup
node_signup -->|"enters app"| node_tabs
node_signin -->|"enters app"| node_tabs

click node_home "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Main/ViewController.swift"
click node_categories "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/CategoryView/CategoryViewController.swift"
click node_category_cell "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/CategoryView/CategoryCollectionViewCell.swift"
click node_stores "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoresView/StoresViewController.swift"
click node_store_cell "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoresView/StoresCollectionViewCell.swift"
click node_details "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoreDetilesView/StorydetailViewController.swift"
click node_rating "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoreDetilesView/Rates/RateViewController.swift"
click node_account "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/AccountViewController.swift"
click node_my_stores "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift"
click node_my_store_detail "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoreViewController.swift"
click node_new_store "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/NewStoreView/NewStoreViewController.swift"
click node_saved_stores "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift"
click node_my_store_cell "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoresCollectionViewCell.swift"
click node_signup "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/SignInView/SignUpViewController.swift"
click node_signin "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/SignInView/SignInViewController.swift"
click node_tabs "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Main/HomeTabbedViewController.swift"
click node_category_service "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/CategoriesService/clsCategory.swift"
click node_store_service "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/StoresServices/clsStore.swift"
click node_saved_service "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/SavedStoresServices/clsSavedStore.swift"
click node_rate_service "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/RatesServices/clsRate.swift"
click node_store_write_service "https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/StoresServices/clsStoresServices.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_home,node_categories,node_category_cell,node_stores,node_store_cell,node_details,node_rating,node_tabs,node_user toneBlue
class node_account,node_my_stores,node_my_store_detail,node_new_store,node_saved_stores,node_my_store_cell toneAmber
class node_signup,node_signin toneMint
class node_category_service,node_store_service,node_saved_service,node_rate_service,node_store_write_service toneRose
```

## Components

### Store discovery

- [Home choices](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Main/ViewController.swift): `StoreLand/StoreLand/Main/ViewController.swift`
- [Categories](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/CategoryView/CategoryViewController.swift): `StoreLand/StoreLand/CategoryView/CategoryViewController.swift`
- [Category cell](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/CategoryView/CategoryCollectionViewCell.swift): `StoreLand/StoreLand/CategoryView/CategoryCollectionViewCell.swift`
- [Store results](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoresView/StoresViewController.swift): `StoreLand/StoreLand/StoresView/StoresViewController.swift`
- [Store card](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoresView/StoresCollectionViewCell.swift): `StoreLand/StoreLand/StoresView/StoresCollectionViewCell.swift`
- [Store details](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoreDetilesView/StorydetailViewController.swift): `StoreLand/StoreLand/StoreDetilesView/StorydetailViewController.swift`
- [Store rating](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/StoreDetilesView/Rates/RateViewController.swift): `StoreLand/StoreLand/StoreDetilesView/Rates/RateViewController.swift`
- [Tabbed home](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Main/HomeTabbedViewController.swift): `StoreLand/StoreLand/Main/HomeTabbedViewController.swift`

### Account and listings

- [Account menu](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/AccountViewController.swift): `StoreLand/StoreLand/Account/AccountViewController.swift`
- [My stores](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift): `StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift`
- [Owned store detail](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoreViewController.swift): `StoreLand/StoreLand/Account/MyStores/MyStoreViewController.swift`
- [Store editor](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/NewStoreView/NewStoreViewController.swift): `StoreLand/StoreLand/Account/NewStoreView/NewStoreViewController.swift`
- [Saved stores](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift): `StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift`
- [Account store card](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/Account/MyStores/MyStoresCollectionViewCell.swift): `StoreLand/StoreLand/Account/MyStores/MyStoresCollectionViewCell.swift`

### Sign-in

- [Sign-up](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/SignInView/SignUpViewController.swift): `StoreLand/StoreLand/SignInView/SignUpViewController.swift`
- [Sign-in](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/SignInView/SignInViewController.swift): `StoreLand/StoreLand/SignInView/SignInViewController.swift`

### Domain services

- [Category data](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/CategoriesService/clsCategory.swift): `StoreLand/StoreLand/API/CategoriesService/clsCategory.swift`
- [Store data](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/StoresServices/clsStore.swift): `StoreLand/StoreLand/API/StoresServices/clsStore.swift`
- [Saved-store data](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/SavedStoresServices/clsSavedStore.swift): `StoreLand/StoreLand/API/SavedStoresServices/clsSavedStore.swift`
- [Rating data](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/RatesServices/clsRate.swift): `StoreLand/StoreLand/API/RatesServices/clsRate.swift`
- [Store submission](https://github.com/abdullah-238/stores-land/blob/main/StoreLand/StoreLand/API/StoresServices/clsStoresServices.swift): `StoreLand/StoreLand/API/StoresServices/clsStoresServices.swift`

### Other components

- **App user**

## Connections

- App user → Home choices: chooses stores (evidence: `StoreLand/StoreLand/Main/ViewController.swift`)
- Home choices → Categories: opens categories (evidence: `StoreLand/StoreLand/Main/ViewController.swift`)
- Categories → Category data: fetches names (evidence: `StoreLand/StoreLand/CategoryView/CategoryViewController.swift`)
- Categories → Category cell: renders (evidence: `StoreLand/StoreLand/CategoryView/CategoryViewController.swift`)
- Categories → Store results: opens category (evidence: `StoreLand/StoreLand/CategoryView/CategoryViewController.swift`)
- Store results → Store data: fetches stores (evidence: `StoreLand/StoreLand/StoresView/StoresViewController.swift`)
- Store results → Store card: renders (evidence: `StoreLand/StoreLand/StoresView/StoresViewController.swift`)
- Store results → Store details: opens selected (evidence: `StoreLand/StoreLand/StoresView/StoresViewController.swift`)
- Store details → Saved-store data: checks and saves (evidence: `StoreLand/StoreLand/StoreDetilesView/StorydetailViewController.swift`)
- Store details → Store rating: opens rating (evidence: `StoreLand/StoreLand/StoreDetilesView/StorydetailViewController.swift`)
- Store rating → Rating data: loads and writes (evidence: `StoreLand/StoreLand/StoreDetilesView/Rates/RateViewController.swift`)
- Store rating → Store data: updates aggregate (evidence: `StoreLand/StoreLand/StoreDetilesView/Rates/RateViewController.swift`)
- App user → Account menu: opens account
- Account menu → My stores: opens listings (evidence: `StoreLand/StoreLand/Account/AccountViewController.swift`)
- Account menu → Store editor: opens editor (evidence: `StoreLand/StoreLand/Account/AccountViewController.swift`)
- Account menu → Saved stores: opens saved (evidence: `StoreLand/StoreLand/Account/AccountViewController.swift`)
- My stores → Store data: fetches owned (evidence: `StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift`)
- My stores → Account store card: renders (evidence: `StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift`)
- My stores → Owned store detail: opens selected (evidence: `StoreLand/StoreLand/Account/MyStores/MyStoresViewController.swift`)
- Saved stores → Saved-store data: fetches saved (evidence: `StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift`)
- Saved stores → Account store card: renders (evidence: `StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift`)
- Saved stores → Store details: opens selected (evidence: `StoreLand/StoreLand/Account/SavedStores/SavedStoresViewController.swift`)
- Store editor → Store submission: submits listing (evidence: `StoreLand/StoreLand/Account/NewStoreView/NewStoreViewController.swift`)
- App user → Sign-up: creates account
- Sign-up → Tabbed home: enters app (evidence: `StoreLand/StoreLand/SignInView/SignUpViewController.swift`)
- Sign-in → Tabbed home: enters app (evidence: `StoreLand/StoreLand/SignInView/SignInViewController.swift`)
