BudgetViewSummary.swift 565 B

12345678910111213141516171819202122232425
  1. //
  2. // BudgetViewSummary.swift
  3. // ydnab
  4. //
  5. // Created by Andrea Franceschini on 03/10/2020.
  6. //
  7. import SwiftUI
  8. /// Shows a summary of the budget (to budget, overbudgeted) and allows to change month and year.
  9. struct BudgetViewSummary: View {
  10. @Binding var budget: BudgetInfo
  11. @Binding var month: Int
  12. @Binding var monthName: String
  13. @Binding var year: Int
  14. var body: some View {
  15. HStack {
  16. Text("To budget") // TODO "overbudgeted"
  17. Spacer()
  18. Text("$ 0.00")
  19. }
  20. .padding(.vertical, 11)
  21. }
  22. }