From 481927c3fddd4db8de8e8fef102b133aa66726c8 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Thu, 6 Jan 2022 18:25:39 -0600 Subject: [PATCH] Enable swipe to refresh on transaction lists --- Twigs/Transaction/TransactionListView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Twigs/Transaction/TransactionListView.swift b/Twigs/Transaction/TransactionListView.swift index e1add71..220b72b 100644 --- a/Twigs/Transaction/TransactionListView.swift +++ b/Twigs/Transaction/TransactionListView.swift @@ -66,6 +66,9 @@ struct TransactionListView: View where Content: View { TransactionList(transactions) } .searchable(text: $search) + .refreshable { + await transactionDataStore.getTransactions(self.budget.id, categoryId: self.category?.id, from: nil, count: nil, page: nil) + } .sheet( isPresented: .constant(addingTransaction), content: {