@@ -49,7 +49,7 @@ struct CardView: View {
49
49
Image ( systemName: " qrcode " )
50
50
. resizable ( )
51
51
. scaledToFit ( )
52
- . foregroundColor ( colorScheme == . dark ? . white : . black )
52
+ . foregroundColor ( . secondary )
53
53
}
54
54
}
55
55
var body : some View {
@@ -60,34 +60,32 @@ struct CardView: View {
60
60
. padding ( [ . top] )
61
61
. frame ( width: toggleSize ? 160 : 60 )
62
62
Spacer ( )
63
- VStack ( alignment: . leading, spacing: 8 ) {
63
+
64
+ VStack ( alignment: . leading, spacing: 2 ) {
64
65
Text ( model. ibanString)
65
- . font ( . headline )
66
+ . font ( . custom ( " Menlo " , size : 16 ) )
66
67
. fontWeight ( . bold)
67
68
HStack {
68
69
Text ( model. account. holderName)
69
- . font ( . caption)
70
70
Spacer ( )
71
71
if topAnimation {
72
72
ZStack ( alignment: . trailing) {
73
73
Text ( model. customName)
74
- . font ( . caption)
75
74
. opacity ( opactiyOn)
76
75
Text ( model. account. bank)
77
- . font ( . caption)
78
76
. opacity ( opactiyOff)
79
77
}
78
+
80
79
} else {
81
80
Text ( expand || !model. hasCustomName ? model. account. bank : model. customName)
82
- . font ( . caption)
83
81
}
84
82
}
85
-
83
+ . font ( . caption )
86
84
}
87
- . padding ( [ . leading, . trailing] )
88
- . padding ( [ . bottom] , model. autostart ? 16 : 8 )
89
- . foregroundColor ( model. autostart ? . primary : . secondary)
85
+ . padding ( [ . leading, . trailing] , 20 )
86
+ . padding ( [ . bottom] , 10 )
90
87
}
88
+ . foregroundColor ( Color . black)
91
89
. cardStyle ( top: model. autostart)
92
90
. onChange ( of: scenePhase) { newPhase in
93
91
guard model. autostart else {
0 commit comments