How siva-sundar-08/moneylog works
MoneyLog is an offline iPhone expense tracker built with SwiftUI and SwiftData. The principal workflow is: open the add sheet from Today, enter an amount and category, validate and save through the transaction repository, then notify screens to reload. Other major areas cover the Today dashboard, searchable Activity history, monthly Insights, budgets and savings goals, settings, and recurring transactions. The graph uses README-described flows and SOURCE INDEX references; unsampled implementation details are not assumed, and there are no external services.
Main entry points: AppContainer.swift App container · RootTabView.swift Tab navigation · AppRouter.swift App router · TransactionRepository.swift Transaction repository
Components 30
App shell
- App launch
MoneyLog/App/MoneyLogApp.swift - App router
MoneyLog/Features/Shell/AppRouter.swift - Tab navigation
MoneyLog/Features/Shell/RootTabView.swift - App container
MoneyLog/App/AppContainer.swift
Ledger core
- Transaction repository
MoneyLog/Core/Repositories/TransactionRepository.swift - Ledger records
MoneyLog/Core/Models/TransactionRecord.swift - Money values
MoneyLog/Core/Money/Money.swift - Accounts
MoneyLog/Core/Models/Account.swift - Categories
MoneyLog/Core/Models/TransactionCategory.swift - Recurring rules
MoneyLog/Core/Models/RecurringTransaction.swift - Recurrence engine
MoneyLog/Core/Services/RecurrenceEngine.swift
Planning and insights
- Monthly insights
MoneyLog/Features/Insights/InsightsView.swift - Insights view model
MoneyLog/Features/Insights/InsightsViewModel.swift - Budgets and goals
MoneyLog/Features/Plan/PlanView.swift - Plan view model
MoneyLog/Features/Plan/PlanViewModel.swift - Budget model
MoneyLog/Core/Models/Budget.swift - Savings goals
MoneyLog/Core/Models/SavingsGoal.swift
Local data
- SwiftData store
MoneyLog/Core/Persistence/PersistenceController.swift - Starter data
MoneyLog/Core/Persistence/SeedDataService.swift - Data reset
MoneyLog/Core/Persistence/DataResetService.swift
Screen experience
- Today dashboard
MoneyLog/Features/Today/TodayView.swift - Today view model
MoneyLog/Features/Today/TodayViewModel.swift - Activity history
MoneyLog/Features/Activity/ActivityView.swift - Activity view model
MoneyLog/Features/Activity/ActivityViewModel.swift - Transaction editor
MoneyLog/Features/AddTransaction/AddTransactionView.swift - Amount entry
MoneyLog/Features/AddTransaction/AmountEntry.swift - Category picker
MoneyLog/Features/AddTransaction/CategoryPickerSheet.swift - Add view model
MoneyLog/Features/AddTransaction/AddTransactionViewModel.swift - Settings
MoneyLog/Features/Settings/SettingsView.swift
Other components
- User
Connections 38
- User → Today dashboard: opens
- User → App router: taps add
- App router → Transaction editor: presents sheet
MoneyLog/Features/AddTransaction/AddTransactionView.swift - User → Amount entry: enters amount
- Amount entry → Money values: builds value
- User → Category picker: chooses category
- User → Transaction editor: saves
- Transaction editor → Add view model: submits
MoneyLog/Features/AddTransaction/AddTransactionView.swift - Add view model → Transaction repository: requests save
- Transaction repository → Ledger records: writes record
MoneyLog/Core/Repositories/TransactionRepository.swift - Transaction repository → Accounts: validates account
MoneyLog/Core/Repositories/TransactionRepository.swift - Transaction repository → Categories: validates category
MoneyLog/Core/Repositories/TransactionRepository.swift - Add view model → App router: bumps version
- App router → Today dashboard: signals reload
- App router → Activity history: signals reload
MoneyLog/Features/Activity/ActivityView.swift - App router → Monthly insights: signals reload
MoneyLog/Features/Insights/InsightsView.swift - Today dashboard → Today view model: uses model
- Activity history → Activity view model: uses model
MoneyLog/Features/Activity/ActivityView.swift - Monthly insights → Insights view model: uses model
MoneyLog/Features/Insights/InsightsView.swift - Budgets and goals → Plan view model: uses model
- App container → Transaction repository: configures
MoneyLog/App/AppContainer.swift - App container → Accounts: configures
MoneyLog/App/AppContainer.swift - App container → Categories: configures
MoneyLog/App/AppContainer.swift - App container → Starter data: seeds at launch
MoneyLog/App/AppContainer.swift - App container → Recurrence engine: processes due rules
MoneyLog/App/AppContainer.swift - Recurrence engine → Recurring rules: reads rules
MoneyLog/Core/Services/RecurrenceEngine.swift - Recurrence engine → Ledger records: creates transactions
MoneyLog/Core/Services/RecurrenceEngine.swift - App launch → App container: initializes
- App launch → Tab navigation: presents app
- Tab navigation → Today dashboard: shows screen
- Tab navigation → Activity history: shows screen
- Tab navigation → Monthly insights: shows screen
- Tab navigation → Budgets and goals: shows screen
- Tab navigation → Settings: shows screen
- App container → SwiftData store: owns store
- App container → Data reset: delegates erase
MoneyLog/App/AppContainer.swift - App container → Budget model: provides budgets
- App container → Savings goals: provides goals