commit 9b4f4e15d585b0e46ffe6225204fecab56949463
parent 0cce5fa1a9ee50d25750f5541de48408a72cbf6c
Author: Marc Stibane <marc@taler.net>
Date: Wed, 2 Apr 2025 10:38:37 +0200
debugAnimations
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Helper/Animations.swift b/TalerWallet1/Helper/Animations.swift
@@ -22,7 +22,9 @@
*/
import SwiftUI
-var debugAnimations = false
+#if DEBUG
+var debugAnimations = true
+#endif
extension Animation {
#if DEBUG
diff --git a/TalerWallet1/Views/OIM/OIMView.swift b/TalerWallet1/Views/OIM/OIMView.swift
@@ -35,9 +35,11 @@ struct OIMamountV: View {
let amountVal = intValue(amount)
AmountV(currStr, cent: UInt64(amountVal), isNegative: nil)
.foregroundColor(WalletColors().attention) // talerColor)
+#if DEBUG
.onTapGesture {
debugAnimations.toggle()
}
+#endif
}
}.padding(.horizontal, UIScreen.hasFaceID ? 20 : 4)
.ignoresSafeArea(edges: .all)