Skip to content

Commit ebdcf83

Browse files
authored
UX/UI Anpassungen der Kartenansicht (#48)
1 parent 1c94222 commit ebdcf83

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Example/SnabblePayExample/Views/CardView.swift

+10-6
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,32 @@ struct CardView: View {
6060
.padding([.top])
6161
.frame(width: toggleSize ? 160 : 60)
6262
Spacer()
63-
64-
VStack(alignment: .leading, spacing: 6) {
63+
VStack(alignment: .leading, spacing: 8) {
64+
Text(model.ibanString)
65+
.font(.headline)
66+
.fontWeight(.bold)
6567
HStack {
6668
Text(model.account.holderName)
69+
.font(.caption)
6770
Spacer()
6871
if topAnimation {
6972
ZStack(alignment: .trailing) {
7073
Text(model.customName)
74+
.font(.caption)
7175
.opacity(opactiyOn)
7276
Text(model.account.bank)
77+
.font(.caption)
7378
.opacity(opactiyOff)
7479
}
7580
} else {
7681
Text(expand || !model.hasCustomName ? model.account.bank : model.customName)
82+
.font(.caption)
7783
}
7884
}
79-
Text(model.ibanString)
80-
.font(.custom("Menlo", size: 16))
81-
.fontWeight(.bold)
85+
8286
}
8387
.padding([.leading, .trailing])
84-
.padding([.bottom], model.autostart ? 20 : 10)
88+
.padding([.bottom], model.autostart ? 16 : 8)
8589
.foregroundColor(model.autostart ? .primary : .secondary)
8690
}
8791
.cardStyle(top: model.autostart)

0 commit comments

Comments
 (0)