taler-ios

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

commit 4ac02cf133c42b08e26cce66068d6b6fab0756eb
parent 6ce5c6445242a3e8fed7d39d2ecdcd776445a6e2
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 12 Oct 2024 22:37:17 +0200

tabBar+QR

Diffstat:
MTalerWallet1/Controllers/PublicConstants.swift | 3+++
MTalerWallet1/Views/Main/MainView.swift | 5++---
MTalerWallet1/Views/Main/WalletEmptyView.swift | 4++--
3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/TalerWallet1/Controllers/PublicConstants.swift b/TalerWallet1/Controllers/PublicConstants.swift @@ -22,6 +22,9 @@ public let EMPTYSTRING = "" // avoid automatic translati public let NONBREAKING: Character = "\u{00A0}" public let UNKNOWN = String(localized: "UNKNOWN", comment: "merchant didn't specify the currency, use ALL CAPS") +public let BALANCES = "chart.bar.xaxis" // 􀣉 2.0 (iOS 14) +public let SETTINGS = "gear" // 􀍟 1.0 (iOS 13) +public let QRBUTTON = "qrcode.viewfinder" // 􀎻 1.0 (iOS 13) public let CONFIRM_BANK = "circle.fill" // badge in PendingRow, TransactionRow and TransactionSummary public let NEEDS_KYC = "star.fill" // badge in PendingRow, TransactionRow and TransactionSummary diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -193,10 +193,9 @@ enum Tab: String, Hashable, CaseIterable { let logo = "taler-logo-2023-red" #endif switch self { - case .balances: return Image(systemName: "chart.bar.xaxis") + case .balances: return Image(systemName: BALANCES) // 􀣉 "chart.bar.xaxis" case .actions: return Image(logo) -// case .overview: return Image(systemName: "dollarsign") - case .settings: return Image(systemName: "gear") + case .settings: return Image(systemName: SETTINGS) // 􀍟 "gear" } } diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift @@ -27,8 +27,8 @@ struct WalletEmptyView: View { .talerFont(.title3) } Section { - let qrButton = Image(systemName: "qrcode.viewfinder") - let settings = Image(systemName: "gear") + let qrButton = Image(systemName: QRBUTTON) // 􀎻 "qrcode.viewfinder" + let settings = Image(systemName: SETTINGS) // 􀍟 "gear" Text("Use «\(qrButton) Scan QR codes» in the Actions menu to start a withdrawal if your bank already supports Taler payments.", comment: "« 􀎻 » 'qrcode.viewfinder'") .talerFont(.body) .listRowSeparator(.hidden)