taler-ios

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

commit 378ee2c76ff3f6e027b8196e20e8056932de4d70
parent 9ff23caa0aea46a9e47f19d2c8972400b7131efd
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 11 Feb 2024 17:49:32 +0100

accessibilityLabel for text input

Diffstat:
MTalerWallet1/Views/HelperViews/CurrencyInputView.swift | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/CurrencyInputView.swift b/TalerWallet1/Views/HelperViews/CurrencyInputView.swift @@ -80,12 +80,12 @@ struct CurrencyInputView: View { let currencyInfo = controller.info(for: currency, controller.currencyTicker) let currencyField = CurrencyField(amount: $amount, currencyInfo: currencyInfo) VStack (alignment: .center) { // center shortcut buttons - Text(title) + Text(title) .frame(maxWidth: .infinity, alignment: .leading) .talerFont(.title3) - .accessibilityAddTraits(.isHeader) - .accessibilityRemoveTraits(.isStaticText) + .accessibilityHidden(true) currencyField + .accessibilityLabel(title) .frame(maxWidth: .infinity, alignment: .trailing) .foregroundColor(WalletColors().fieldForeground) // text color .background(WalletColors().fieldBackground)