Fixed that search bar didn't scroll out of view but was always visible

This commit is contained in:
dankito 2020-09-09 13:32:24 +02:00
parent cc6e02f431
commit 53f0380302
1 changed files with 16 additions and 14 deletions

View File

@ -83,6 +83,9 @@ struct AccountTransactionsDialog: View {
var body: some View {
VStack {
Form {
Section {
VStack {
UIKitSearchBar(text: searchTextBinding)
@ -95,10 +98,9 @@ struct AccountTransactionsDialog: View {
AmountLabel(amount: balanceOfFilteredTransactions)
}
.padding(.horizontal)
}
}
Spacer()
Form {
Section {
ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in
AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)