commit 7b6700d6d9bdb3fce6296f3bc886af5255d72733
parent 941416726a2eca527e087c370236c43a51815c76
Author: Marc Stibane <marc@taler.net>
Date: Tue, 22 Apr 2025 11:59:14 +0200
AmountV in background
Diffstat:
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/TalerWallet1/Views/OIM/OIMbackground.swift b/TalerWallet1/Views/OIM/OIMbackground.swift
@@ -20,20 +20,22 @@ struct OIMamountV: View {
func updateColor() {
#if DEBUG
- color = debugAnimations ? WalletColors().attention
+ color = debugAnimations ? .orange
: fastAnimations ? WalletColors().talerColor
- : WalletColors().confirm
+ : .red
#else
color = fastAnimations ? WalletColors().talerColor
: WalletColors().confirm
#endif
}
var body: some View {
- HStack {
- Spacer()
if let amount {
AmountV(currencyName, amount: amount, isNegative: nil)
+ .ignoresSafeArea(edges: .top)
.foregroundColor(color)
+ .task {
+ updateColor()
+ }
#if DEBUG
.onTapGesture(count: 2) {
if debugAnimations {
@@ -59,11 +61,6 @@ struct OIMamountV: View {
updateColor()
}
}
- }.padding(.horizontal, UIScreen.hasFaceID ? 20 : 4)
- .ignoresSafeArea(edges: .all)
- .task {
- updateColor()
- }
}
}
// MARK: -