From d088c79ddd648b653e475fa79c74a64f7bd62775 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 19 Jul 2020 20:40:55 +0200 Subject: [PATCH] Fixed that NavigationLink for Bank has been shown on full cell height --- .../BankingiOSApp/ui/views/BankListItem.swift | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift index 9ef5d0c3..2073ea0d 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift @@ -8,21 +8,21 @@ struct BankListItem : View { var body: some View { - NavigationLink(destination: AccountTransactionsDialog(title: bank.displayName, transactions: bank.accounts.flatMap { $0.bookedTransactions })) { - VStack(alignment: .leading) { + VStack { + NavigationLink(destination: AccountTransactionsDialog(title: bank.displayName, transactions: bank.accounts.flatMap { $0.bookedTransactions })) { HStack { Text(bank.displayName) + Spacer() }.frame(height: 35) - - VStack { - ForEach(0 ..< bank.accounts.count) { accountIndex in - BankAccountListItem(account: self.bank.accounts[accountIndex]) - } - } - .padding(.leading, 18) - .padding(.trailing, 6.0) } + + VStack { + ForEach(0 ..< bank.accounts.count) { accountIndex in + BankAccountListItem(account: self.bank.accounts[accountIndex]) + } + } + .padding(.leading, 18) } }