commit 3a8dac4c8fb3b88accf2e12282caaff38773d7f6
parent c2296eaa218455c277d30c9cb4a386f2f08201b2
Author: Marc Stibane <marc@taler.net>
Date: Wed, 20 Nov 2024 07:49:02 +0100
baseURL
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Balances/BalanceCellV.swift b/TalerWallet1/Views/Balances/BalanceCellV.swift
@@ -21,9 +21,21 @@ struct BalanceCellV: View {
@Environment(\.colorSchemeContrast) private var colorSchemeContrast
@AppStorage("minimalistic") var minimalistic: Bool = false
+ private func baseURL(_ url: String?) -> String {
+ if let url {
+ return url.trimURL
+ } else {
+ return String(localized: "Unknown payment service", comment: "exchange url")
+ }
+ }
+
/// Renders the Balance button. "Balance" leading, amountStr trailing. If it doesn't fit in one row then
/// amount (trailing) goes underneath "Balance" (leading).
var body: some View {
+#if PRINT_CHANGES
+ let _ = Self._printChanges()
+// let _ = symLog.vlog() // just to get the # to compare it with .onAppear & onDisappear
+#endif
let amountV = AmountV(stack: stack.push("AmountV"),
scope: scope,
amount: amount,