taler-ios

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

commit d6c9c84ba843c64b71f065525868a3f0abf184e5
parent 420cdf349df8a088e9219fab1767a88aa565c59d
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 15 Feb 2024 07:00:15 +0100

Withdraw Title with currency symbol

Diffstat:
MTalerWallet1/Views/Banking/ManualWithdraw.swift | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Banking/ManualWithdraw.swift @@ -34,7 +34,10 @@ struct ManualWithdraw: View { ?? exchange.currency ?? String(localized: "Unknown", comment: "unknown currency") let currencyInfo = controller.info(for: currency, controller.currencyTicker) - let navTitle = String(localized: "NavTitle_Withdraw (currency)", defaultValue: "Withdraw \(currency)") + let currencySymbol = currencyInfo.specs.altUnitNames?[0] ?? currency + let navTitle = String(localized: "NavTitle_Withdraw (currency)", + defaultValue: "Withdraw \(currencySymbol)", + comment: "NavTitle: Withdraw 'currencySymbol'") // let agePicker = AgePicker(ageMenuList: $ageMenuList, selectedAge: $selectedAge) let someCoins = SomeCoins(details: withdrawalAmountDetails)