Fixed showing "Fetch all transaction" below list (but cell has white spaces, why?)

This commit is contained in:
dankito 2020-08-10 16:35:47 +02:00
parent bb347c8335
commit 68fd3f2188
1 changed files with 17 additions and 12 deletions

View File

@ -95,15 +95,16 @@ struct AccountTransactionsDialog: View {
Spacer()
List {
Form {
Section {
ForEach(filteredTransactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.technicalId) { transaction in
AccountTransactionListItem(transaction, self.areMoreThanOneBanksTransactionsDisplayed)
}
}
if haveAllTransactionsBeenFetched == false && showFetchAllTransactionsOverlay == false {
Spacer()
HStack(alignment: .center) {
Section {
HStack {
Spacer()
Button("Fetch all account transactions") {
@ -112,9 +113,13 @@ struct AccountTransactionsDialog: View {
Spacer()
}
.frame(height: 35)
}
.frame(maxWidth: .infinity, minHeight: 40)
.background(Color(UIColor.systemGroupedBackground))
.listRowInsets(EdgeInsets())
}
}
.background(Color(UIColor.systemGroupedBackground))
if showFetchAllTransactionsOverlay {
VStack {