feat: savings tab, fix pull-to-refresh, beautiful modals, fix signing

This commit is contained in:
Cosmo
2026-03-25 12:24:01 +00:00
parent 74805bc9d1
commit 4c54467b5e
12 changed files with 487 additions and 114 deletions

View File

@@ -48,13 +48,16 @@ struct FinanceView: View {
}
.sheet(isPresented: $showAddTransaction) {
AddTransactionView(isPresented: $showAddTransaction, categories: categories) { await loadData() }
.presentationDetents([.medium, .large])
.presentationDragIndicator(.visible)
.presentationBackground(Color(hex: "0a0a1a"))
}
.task { await loadData() }
.refreshable { await loadData() }
.refreshable { await loadData(refresh: true) }
}
func loadData() async {
isLoading = true
func loadData(refresh: Bool = false) async {
if !refresh { isLoading = true }
async let s = APIService.shared.getFinanceSummary(token: authManager.token)
async let t = APIService.shared.getTransactions(token: authManager.token)
async let c = APIService.shared.getFinanceCategories(token: authManager.token)