From 53f0380302228f2cd01e100521d7af7d916d7581 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 9 Sep 2020 13:32:24 +0200 Subject: [PATCH] Fixed that search bar didn't scroll out of view but was always visible --- .../dialogs/AccountTransactionsDialog.swift | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift index 2c634c59..3e95e4d5 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/AccountTransactionsDialog.swift @@ -84,21 +84,23 @@ struct AccountTransactionsDialog: View { var body: some View { VStack { - UIKitSearchBar(text: searchTextBinding) - - HStack { - Text("\(String(filteredTransactions.count)) transactions") - .styleAsDetail() - - Spacer() - - AmountLabel(amount: balanceOfFilteredTransactions) - } - .padding(.horizontal) - - Spacer() - Form { + Section { + VStack { + UIKitSearchBar(text: searchTextBinding) + + HStack { + Text("\(String(filteredTransactions.count)) transactions") + .styleAsDetail() + + Spacer() + + AmountLabel(amount: balanceOfFilteredTransactions) + } + .padding(.horizontal) + } + } + Section { ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)