Fixed that whole FetchAllTransactionsOverlay gets displayed in systemGroupedBackground

This commit is contained in:
dankito 2020-08-10 16:06:54 +02:00
parent cd3a24a360
commit 2646863198
1 changed files with 15 additions and 11 deletions

View File

@ -116,24 +116,28 @@ struct AccountTransactionsDialog: View {
} }
} }
Spacer()
if showFetchAllTransactionsOverlay { if showFetchAllTransactionsOverlay {
HStack(alignment: .center) { VStack {
Button("x") {
self.showFetchAllTransactionsOverlay = false
}
Spacer() Spacer()
Button("Fetch all account transactions") { HStack(alignment: .center) {
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) Button("x") {
self.showFetchAllTransactionsOverlay = false
}
.font(.title)
Spacer()
Button("Fetch all account transactions") {
self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched)
}
Spacer()
} }
Spacer() Spacer()
} }
.frame(height: 35) .frame(height: 40)
.padding(.top, 8)
.padding(.horizontal, 6) .padding(.horizontal, 6)
.background(Color(UIColor.systemGroupedBackground)) .background(Color(UIColor.systemGroupedBackground))
} }