Re-did that NavigationLink is shown for whole cell as otherwise navigation crashes the app (why, iOS, why?)

This commit is contained in:
dankito 2020-07-19 21:36:53 +02:00
parent 7ec1c3f94b
commit e95dfee564
1 changed files with 10 additions and 10 deletions

View File

@ -8,15 +8,14 @@ struct BankListItem : View {
var body: some View {
VStack {
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
@ -26,6 +25,7 @@ struct BankListItem : View {
.padding(.leading, 18)
}
}
}
}