Enable swipe to refresh on transaction lists
This commit is contained in:
parent
7242112218
commit
481927c3fd
1 changed files with 3 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue