Fixed that search bar didn't scroll out of view but was always visible
This commit is contained in:
parent
cc6e02f431
commit
53f0380302
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue