phlippieb / daily-budget-app

A simple SwiftUI/iOS app to view your daily budget allowance
GNU General Public License v3.0
1 stars 0 forks source link

Today's amount not updating when changed in budget view #39

Closed phlippieb closed 5 months ago

phlippieb commented 5 months ago

Repro steps:

  1. Given a budget with an expense
  2. From the home view, tap to view the budget
  3. Tap an expense and edit its amount
  4. Note the updated daily amount in the budget view
  5. Return to the home view. Note that the daily amount has not updated
phlippieb commented 5 months ago

Most likely because the daily amount in BudgetItemView relies on a BudgetProgressInfo model info that is not live-updating when the underlying model changes. However, it's interesting that it does update in ViewBudget. See if we can duplicate that functionality in Home.