Fixed that NavigationLink for Bank has been shown on full cell height
This commit is contained in:
parent
fee4044240
commit
d088c79ddd
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue