File tree 1 file changed +10
-6
lines changed
Example/SnabblePayExample/Views
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -60,28 +60,32 @@ struct CardView: View {
60
60
. padding ( [ . top] )
61
61
. frame ( width: toggleSize ? 160 : 60 )
62
62
Spacer ( )
63
-
64
- VStack ( alignment: . leading, spacing: 6 ) {
63
+ VStack ( alignment: . leading, spacing: 8 ) {
64
+ Text ( model. ibanString)
65
+ . font ( . headline)
66
+ . fontWeight ( . bold)
65
67
HStack {
66
68
Text ( model. account. holderName)
69
+ . font ( . caption)
67
70
Spacer ( )
68
71
if topAnimation {
69
72
ZStack ( alignment: . trailing) {
70
73
Text ( model. customName)
74
+ . font ( . caption)
71
75
. opacity ( opactiyOn)
72
76
Text ( model. account. bank)
77
+ . font ( . caption)
73
78
. opacity ( opactiyOff)
74
79
}
75
80
} else {
76
81
Text ( expand || !model. hasCustomName ? model. account. bank : model. customName)
82
+ . font ( . caption)
77
83
}
78
84
}
79
- Text ( model. ibanString)
80
- . font ( . custom( " Menlo " , size: 16 ) )
81
- . fontWeight ( . bold)
85
+
82
86
}
83
87
. padding ( [ . leading, . trailing] )
84
- . padding ( [ . bottom] , model. autostart ? 20 : 10 )
88
+ . padding ( [ . bottom] , model. autostart ? 16 : 8 )
85
89
. foregroundColor ( model. autostart ? . primary : . secondary)
86
90
}
87
91
. cardStyle ( top: model. autostart)
You can’t perform that action at this time.
0 commit comments