feat: savings tab, fix pull-to-refresh, beautiful modals, fix signing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user