Fixed that BankListItem didn't correctly resize to its content

This commit is contained in:
dankito 2020-07-19 20:27:24 +02:00
parent f96826e95b
commit fee4044240
1 changed files with 8 additions and 4 deletions

View File

@ -15,10 +15,14 @@ struct BankListItem : View {
Spacer() Spacer()
}.frame(height: 35) }.frame(height: 35)
List(bank.accounts, id: \.id) { account in VStack {
return BankAccountListItem(account: account) ForEach(0 ..< bank.accounts.count) { accountIndex in
BankAccountListItem(account: self.bank.accounts[accountIndex])
}
} }
}.frame(minHeight: 70) .padding(.leading, 18)
.padding(.trailing, 6.0)
}
} }
} }