taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit c58005f01e12f3ca10e9d2dadecc14b8e7aa3ccd
parent b014ad5ce6015a0cb7ce5114fa2eb0cf691c0e4d
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 26 Nov 2024 08:38:15 +0100

debug

Diffstat:
MTalerWallet1/Views/Balances/BalanceCellV.swift | 7+++++++
MTalerWallet1/Views/Transactions/TransactionRowView.swift | 9+++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalanceCellV.swift b/TalerWallet1/Views/Balances/BalanceCellV.swift @@ -36,6 +36,13 @@ struct BalanceCellV: View { let _ = Self._printChanges() // let _ = symLog.vlog() // just to get the # to compare it with .onAppear & onDisappear #endif +#if DEBUG + let debug = 1==0 + let red = debug ? Color.red : Color.clear + let green = debug ? Color.green : Color.clear + let blue = debug ? Color.blue : Color.clear + let orange = debug ? Color.orange : Color.clear +#endif let amountV = AmountV(stack: stack.push("AmountV"), scope: scope, amount: amount, diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift @@ -129,14 +129,23 @@ struct TransactionRowView: View { .border(red) #endif } +#if DEBUG + .border(blue) +#endif } let layout3 = VStack(alignment: .leading, spacing: 0) { if topString != nil { // top & amount, bottom below HStack(spacing: 8) { centerTop +#if DEBUG + .border(blue) +#endif Spacer(minLength: 2) amountV +#if DEBUG + .border(green) +#endif } centerBottom } else { // no top, bottom & amount