# hardytee1/moneyfinder-ios architecture

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

- Interactive diagram: https://gitdiagram.com/hardytee1/moneyfinder-ios
- Repository: https://github.com/hardytee1/moneyfinder-ios

## Overview

MoneyFinder is a private, on-device iOS spending tracker. Users arrive at Insights, then review totals, add spending manually, or import a screenshot; Back Tap captures enter a durable review workflow and affect totals only after saving. The graph also includes setup and reminders. Sampled source confirms key view, extraction, persistence, and commit relationships; some setup and capture handoff details are documented in the README rather than shown in source excerpts.

Main entry points: [`MoneyFinder/Views/SpendingView.swift`](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/SpendingView.swift) (Insights dashboard), [`MoneyFinder/Imports/ImportReviewView.swift`](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportReviewView.swift) (Import review), [`MoneyFinder/Imports/ImportExpenseCommit.swift`](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportExpenseCommit.swift) (Import commit), [`MoneyFinder/Views/LogSpendingView.swift`](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/LogSpendingView.swift) (Manual entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App experience"]
  node_appentry["App entry"]
  node_dashboard["Insights dashboard<br/>[SpendingView.swift]"]
  node_setup["Capture Finder setup<br/>[SpendingView.swift]"]
end

subgraph group_capture["Capture and imports"]
  node_shortcut["Capture shortcut"]
  node_intent["Screenshot intake"]
  node_inbox["Import inbox"]
  node_store[("Private import store<br/>[ImportStore.swift]")]
  node_draft["Import draft<br/>[ImportDraft.swift]"]
  node_extraction["Screenshot extraction"]
  node_ocr["Image OCR"]
  node_validation["Import validation"]
  node_review["Import review"]
  node_commit["Import commit"]
end

subgraph group_ledger["Spending ledger"]
  node_manual["Manual entry"]
  node_editor["Expense editor"]
  node_expense[("Expense record<br/>[Expense.swift]")]
  node_amount["Currency amounts"]
  node_category["Expense categories"]
  node_dates["Spending dates<br/>[SpendingDate.swift]"]
end

subgraph group_support["Insights and reminders"]
  node_periods["Period calculator"]
  node_totals["Currency totals"]
  node_reminders["Reminder manager"]
  node_reminderui["Reminder controls"]
end

node_user(("User"))
node_ios(("iOS services"))

node_user -->|"opens"| node_appentry
node_appentry -->|"shows"| node_dashboard
node_user -->|"chooses"| node_dashboard
node_dashboard -->|"opens setup"| node_setup
node_setup -->|"opens installer"| node_ios
node_user -->|"triggers"| node_shortcut
node_shortcut -->|"hands off capture"| node_intent
node_intent -->|"persists intake"| node_store
node_dashboard -->|"opens imports"| node_inbox
node_inbox -->|"loads drafts"| node_store
node_inbox -->|"opens draft"| node_review
node_store -->|"stores metadata"| node_draft
node_review -->|"loads image"| node_store
node_review -->|"extracts fields"| node_extraction
node_extraction -->|"recognizes text"| node_ocr
node_extraction -->|"normalizes fields"| node_validation
node_review -->|"checks fields"| node_validation
node_review -->|"saves expense"| node_commit
node_commit -->|"creates record"| node_expense
node_commit -->|"parses amount"| node_amount
node_commit -->|"normalizes date"| node_dates
node_commit -->|"assigns category"| node_category
node_user -->|"adds spending"| node_manual
node_manual -->|"saves record"| node_expense
node_manual -->|"formats amount"| node_amount
node_manual -->|"selects category"| node_category
node_dashboard -->|"edits entry"| node_editor
node_editor -->|"updates record"| node_expense
node_editor -->|"formats amount"| node_amount
node_editor -->|"edits date"| node_dates
node_dashboard -->|"calculates period"| node_periods
node_dashboard -->|"summarizes currencies"| node_totals
node_periods -->|"uses currency scale"| node_amount
node_dashboard -->|"reads entries"| node_expense
node_dashboard -->|"shows controls"| node_reminderui
node_reminderui -->|"configures schedule"| node_reminders
node_appentry -->|"restores schedule"| node_reminders
node_reminders -->|"schedules notification"| node_ios

click node_appentry "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/MoneyFinderApp.swift"
click node_dashboard "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/SpendingView.swift"
click node_setup "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/SpendingView.swift"
click node_shortcut "https://github.com/hardytee1/moneyfinder-ios/blob/main/Shortcuts/Capture%20Spending.shortcut"
click node_intent "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportScreenshotIntent.swift"
click node_inbox "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportInboxView.swift"
click node_store "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportStore.swift"
click node_draft "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportDraft.swift"
click node_extraction "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ScreenshotExtraction.swift"
click node_ocr "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ScreenshotOCR.swift"
click node_validation "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportValidation.swift"
click node_review "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportReviewView.swift"
click node_commit "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportExpenseCommit.swift"
click node_manual "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/LogSpendingView.swift"
click node_editor "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/ExpenseEditorView.swift"
click node_expense "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/Expense.swift"
click node_amount "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/CurrencyAmount.swift"
click node_category "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ExpenseCategory.swift"
click node_dates "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/SpendingDate.swift"
click node_periods "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/PeriodSpendingCalculator.swift"
click node_totals "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/CurrencySpendingTotals.swift"
click node_reminders "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/ReminderManager.swift"
click node_reminderui "https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/Components/ReminderControlView.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_appentry,node_dashboard,node_setup,node_user toneBlue
class node_shortcut,node_intent,node_inbox,node_store,node_draft,node_extraction,node_ocr,node_validation,node_review,node_commit toneAmber
class node_manual,node_editor,node_expense,node_amount,node_category,node_dates toneMint
class node_periods,node_totals,node_reminders,node_reminderui toneRose
class node_ios toneIndigo
```

## Components

### App experience

- [App entry](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/MoneyFinderApp.swift): `MoneyFinder/MoneyFinderApp.swift`
- [Insights dashboard](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/SpendingView.swift): `MoneyFinder/Views/SpendingView.swift`
- [Capture Finder setup](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/SpendingView.swift): `MoneyFinder/Views/SpendingView.swift`

### Capture and imports

- [Capture shortcut](https://github.com/hardytee1/moneyfinder-ios/blob/main/Shortcuts/Capture%20Spending.shortcut): `Shortcuts/Capture Spending.shortcut`
- [Screenshot intake](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportScreenshotIntent.swift): `MoneyFinder/Imports/ImportScreenshotIntent.swift`
- [Import inbox](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportInboxView.swift): `MoneyFinder/Imports/ImportInboxView.swift`
- [Private import store](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportStore.swift): `MoneyFinder/Imports/ImportStore.swift`
- [Import draft](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportDraft.swift): `MoneyFinder/Imports/ImportDraft.swift`
- [Screenshot extraction](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ScreenshotExtraction.swift): `MoneyFinder/Imports/ScreenshotExtraction.swift`
- [Image OCR](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ScreenshotOCR.swift): `MoneyFinder/Imports/ScreenshotOCR.swift`
- [Import validation](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportValidation.swift): `MoneyFinder/Imports/ImportValidation.swift`
- [Import review](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportReviewView.swift): `MoneyFinder/Imports/ImportReviewView.swift`
- [Import commit](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ImportExpenseCommit.swift): `MoneyFinder/Imports/ImportExpenseCommit.swift`

### Spending ledger

- [Manual entry](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/LogSpendingView.swift): `MoneyFinder/Views/LogSpendingView.swift`
- [Expense editor](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/ExpenseEditorView.swift): `MoneyFinder/Views/ExpenseEditorView.swift`
- [Expense record](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/Expense.swift): `MoneyFinder/Models/Expense.swift`
- [Currency amounts](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/CurrencyAmount.swift): `MoneyFinder/Models/CurrencyAmount.swift`
- [Expense categories](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Imports/ExpenseCategory.swift): `MoneyFinder/Imports/ExpenseCategory.swift`
- [Spending dates](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Models/SpendingDate.swift): `MoneyFinder/Models/SpendingDate.swift`

### Insights and reminders

- [Period calculator](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/PeriodSpendingCalculator.swift): `MoneyFinder/Services/PeriodSpendingCalculator.swift`
- [Currency totals](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/CurrencySpendingTotals.swift): `MoneyFinder/Services/CurrencySpendingTotals.swift`
- [Reminder manager](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Services/ReminderManager.swift): `MoneyFinder/Services/ReminderManager.swift`
- [Reminder controls](https://github.com/hardytee1/moneyfinder-ios/blob/main/MoneyFinder/Views/Components/ReminderControlView.swift): `MoneyFinder/Views/Components/ReminderControlView.swift`

### Other components

- **User**
- **iOS services**

## Connections

- User → App entry: opens (evidence: `README.md`)
- App entry → Insights dashboard: shows
- User → Insights dashboard: chooses (evidence: `README.md`)
- Insights dashboard → Capture Finder setup: opens setup (evidence: `README.md`)
- Capture Finder setup → iOS services: opens installer (evidence: `README.md`)
- User → Capture shortcut: triggers (evidence: `README.md`)
- Capture shortcut → Screenshot intake: hands off capture (evidence: `README.md`)
- Screenshot intake → Private import store: persists intake (evidence: `MoneyFinder/Imports/ImportScreenshotIntent.swift`)
- Insights dashboard → Import inbox: opens imports (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Import inbox → Private import store: loads drafts (evidence: `MoneyFinder/Imports/ImportInboxView.swift`)
- Import inbox → Import review: opens draft (evidence: `MoneyFinder/Imports/ImportInboxView.swift`)
- Private import store → Import draft: stores metadata (evidence: `MoneyFinder/Imports/ImportStore.swift`)
- Import review → Private import store: loads image (evidence: `MoneyFinder/Imports/ImportReviewView.swift`)
- Import review → Screenshot extraction: extracts fields (evidence: `MoneyFinder/Imports/ImportReviewView.swift`)
- Screenshot extraction → Image OCR: recognizes text (evidence: `MoneyFinder/Imports/ScreenshotExtraction.swift`)
- Screenshot extraction → Import validation: normalizes fields (evidence: `MoneyFinder/Imports/ScreenshotExtraction.swift`)
- Import review → Import validation: checks fields (evidence: `MoneyFinder/Imports/ImportReviewView.swift`)
- Import review → Import commit: saves expense (evidence: `MoneyFinder/Imports/ImportReviewView.swift`)
- Import commit → Expense record: creates record (evidence: `MoneyFinder/Imports/ImportExpenseCommit.swift`)
- Import commit → Currency amounts: parses amount (evidence: `MoneyFinder/Imports/ImportExpenseCommit.swift`)
- Import commit → Spending dates: normalizes date (evidence: `MoneyFinder/Imports/ImportExpenseCommit.swift`)
- Import commit → Expense categories: assigns category (evidence: `MoneyFinder/Imports/ImportExpenseCommit.swift`)
- User → Manual entry: adds spending (evidence: `README.md`)
- Manual entry → Expense record: saves record (evidence: `MoneyFinder/Views/LogSpendingView.swift`)
- Manual entry → Currency amounts: formats amount (evidence: `MoneyFinder/Views/LogSpendingView.swift`)
- Manual entry → Expense categories: selects category (evidence: `MoneyFinder/Views/LogSpendingView.swift`)
- Insights dashboard → Expense editor: edits entry (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Expense editor → Expense record: updates record (evidence: `MoneyFinder/Views/ExpenseEditorView.swift`)
- Expense editor → Currency amounts: formats amount (evidence: `MoneyFinder/Views/ExpenseEditorView.swift`)
- Expense editor → Spending dates: edits date (evidence: `MoneyFinder/Views/ExpenseEditorView.swift`)
- Insights dashboard → Period calculator: calculates period (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Insights dashboard → Currency totals: summarizes currencies (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Period calculator → Currency amounts: uses currency scale (evidence: `MoneyFinder/Services/PeriodSpendingCalculator.swift`)
- Insights dashboard → Expense record: reads entries (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Insights dashboard → Reminder controls: shows controls (evidence: `MoneyFinder/Views/SpendingView.swift`)
- Reminder controls → Reminder manager: configures schedule (evidence: `MoneyFinder/Views/Components/ReminderControlView.swift`)
- App entry → Reminder manager: restores schedule (evidence: `MoneyFinder/MoneyFinderApp.swift`)
- Reminder manager → iOS services: schedules notification (evidence: `MoneyFinder/Services/ReminderManager.swift`)
