Re-did that NavigationLink is shown for whole cell as otherwise navigation crashes the app (why, iOS, why?)
This commit is contained in:
parent
7ec1c3f94b
commit
e95dfee564
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue