diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift index 7b090c5a..e62c6721 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/BankListItem.swift @@ -8,25 +8,25 @@ struct BankListItem : View { var body: some View { - VStack { - NavigationLink(destination: AccountTransactionsDialog(title: bank.displayName, transactions: bank.accounts.flatMap { $0.bookedTransactions })) { + NavigationLink(destination: AccountTransactionsDialog(title: bank.displayName, transactions: bank.accounts.flatMap { $0.bookedTransactions })) { + VStack { HStack { Text(bank.displayName) .font(.headline) - + Spacer() }.frame(height: 35) - } - - VStack { - ForEach(0 ..< bank.accounts.count) { accountIndex in - BankAccountListItem(account: self.bank.accounts[accountIndex]) + + VStack { + ForEach(0 ..< bank.accounts.count) { accountIndex in + BankAccountListItem(account: self.bank.accounts[accountIndex]) + } } + .padding(.leading, 18) } - .padding(.leading, 18) } } - + }