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

@ -84,21 +84,23 @@ struct AccountTransactionsDialog: View {
var body: some View { var body: some View {
VStack { VStack {
UIKitSearchBar(text: searchTextBinding)
HStack {
Text("\(String(filteredTransactions.count)) transactions")
.styleAsDetail()
Spacer()
AmountLabel(amount: balanceOfFilteredTransactions)
}
.padding(.horizontal)
Spacer()
Form { Form {
Section {
VStack {
UIKitSearchBar(text: searchTextBinding)
HStack {
Text("\(String(filteredTransactions.count)) transactions")
.styleAsDetail()
Spacer()
AmountLabel(amount: balanceOfFilteredTransactions)
}
.padding(.horizontal)
}
}
Section { Section {
ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in
AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed) AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)