commit 2b6885e7de6f0cfe1fff067ce18d2936e9bb9947
parent 09e7fc76020aa377cc58da1bbe5697ba35e73505
Author: Marc Stibane <marc@taler.net>
Date: Fri, 27 Nov 2026 08:23:17 +0100
A11y
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
@@ -46,7 +46,7 @@ struct ManualWithdraw: View {
}
}
- func navTitle(_ currency: String, _ condition: Bool = false) -> String {
+ func navTitle(_ currency: String, _ condition: Bool = true) -> String {
condition ? String(localized: "NavTitle_Withdraw_Currency)",
defaultValue: "Withdraw \(currency)",
comment: "NavTitle: Withdraw 'currency'")
@@ -93,11 +93,12 @@ struct ManualWithdraw: View {
amountToTransfer: $amountToTransfer,
exchange: exchange)
} else { // should never happen, we either have an exchange or a balance
- ErrorView(stack.push(), title: navTitle,
+ ErrorView(stack.push(), title: navTitle, titleA11y: navA11y,
message: String(localized: "No scope"), copyable: true)
}
} // ScrollView
.navigationTitle(navTitle)
+// .accessibilityLabel(Text(navA11y)) can't add A11y to navTitle in SwiftUI
.frame(maxWidth: .infinity, alignment: .leading)
.background(FullBackground())
.onAppear {