Enable swipe to refresh on transaction lists

This commit is contained in:
William Brawner 2022-01-06 18:25:39 -06:00
parent 7242112218
commit 481927c3fd

View file

@ -66,6 +66,9 @@ struct TransactionListView<Content>: 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: {