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

@@ -66,7 +66,7 @@ struct HealthView: View {
}
}
.refreshable {
await loadData()
await loadData(refresh: true)
}
}
.toast(isShowing: $showToast, message: toastMessage, isSuccess: toastSuccess)
@@ -174,8 +174,8 @@ struct HealthView: View {
// MARK: - Load Data
func loadData() async {
isLoading = true
func loadData(refresh: Bool = false) async {
if !refresh { isLoading = true }
let apiKey = authManager.healthApiKey