Made text of bank name, IBAN and BIC smaller as list item was way too height; set line limit for all three parts to 1; showing line with bank name only if bank name is set
This commit is contained in:
parent
c65632f8f4
commit
044ff141a5
|
@ -12,25 +12,33 @@ struct RemitteeListItem: View {
|
|||
|
||||
HStack {
|
||||
Text(remittee.name)
|
||||
.font(.headline)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
|
||||
HStack {
|
||||
Text(remittee.bankName ?? "")
|
||||
.bold()
|
||||
.lineLimit(1)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.padding(.vertical, 6)
|
||||
|
||||
remittee.bankName.map { bankName in
|
||||
HStack {
|
||||
Text(remittee.iban ?? "")
|
||||
|
||||
Text(remittee.bic ?? "")
|
||||
Text(bankName)
|
||||
.font(.footnote)
|
||||
.lineLimit(1)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.padding(.bottom, 6)
|
||||
}
|
||||
|
||||
HStack {
|
||||
Text(remittee.iban ?? "")
|
||||
|
||||
Spacer()
|
||||
|
||||
Text(remittee.bic ?? "")
|
||||
}
|
||||
.font(.footnote)
|
||||
.lineLimit(1)
|
||||
.padding(.bottom, 6.0)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue