From 2646863198e713313a9eed2091e4d892b39543ba Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 10 Aug 2020 16:06:54 +0200 Subject: [PATCH] Fixed that whole FetchAllTransactionsOverlay gets displayed in systemGroupedBackground --- .../ui/views/AccountTransactionsDialog.swift | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift index d37bbfc3..02d8c998 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift @@ -115,25 +115,29 @@ struct AccountTransactionsDialog: View { .frame(height: 35) } } - - Spacer() if showFetchAllTransactionsOverlay { - HStack(alignment: .center) { - Button("x") { - self.showFetchAllTransactionsOverlay = false - } - + VStack { Spacer() - Button("Fetch all account transactions") { - self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) + HStack(alignment: .center) { + Button("x") { + self.showFetchAllTransactionsOverlay = false + } + .font(.title) + + Spacer() + + Button("Fetch all account transactions") { + self.fetchAllTransactions(self.accountsForWhichNotAllTransactionsHaveBeenFetched) + } + + Spacer() } Spacer() } - .frame(height: 35) - .padding(.top, 8) + .frame(height: 40) .padding(.horizontal, 6) .background(Color(UIColor.systemGroupedBackground)) }