[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 02/11: ShareButton title
From: |
gnunet |
Subject: |
[taler-taler-ios] 02/11: ShareButton title |
Date: |
Sat, 10 Aug 2024 04:29:22 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit f405f30e71f48be06f57963bd28d7826f1d72da6
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Aug 8 06:04:15 2024 +0200
ShareButton title
---
TalerWallet1/Views/HelperViews/CopyShare.swift | 12 +++++++++++-
TalerWallet1/Views/Transactions/ManualDetailsV.swift | 6 ++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/CopyShare.swift
b/TalerWallet1/Views/HelperViews/CopyShare.swift
index fec57d6..1bb01ba 100644
--- a/TalerWallet1/Views/HelperViews/CopyShare.swift
+++ b/TalerWallet1/Views/HelperViews/CopyShare.swift
@@ -48,6 +48,16 @@ struct CopyButton: View {
struct ShareButton: View {
private let symLog = SymLogV(0)
let textToShare: String
+ let title: String
+
+ init(textToShare: String) {
+ self.textToShare = textToShare
+ self.title = String(localized: "Share")
+ }
+ init(textToShare: String, title: String) {
+ self.textToShare = textToShare
+ self.title = title
+ }
@Environment(\.isEnabled) private var isEnabled: Bool
@EnvironmentObject private var controller: Controller
@@ -63,7 +73,7 @@ struct ShareButton: View {
HStack {
Image(systemName: "square.and.arrow.up")
.accessibility(hidden: true)
- Text("Share")
+ Text(title)
}
}
.talerFont(.body)
diff --git a/TalerWallet1/Views/Transactions/ManualDetailsV.swift
b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
index bb3cd74..c1a21b5 100644
--- a/TalerWallet1/Views/Transactions/ManualDetailsV.swift
+++ b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
@@ -332,9 +332,11 @@ struct ManualDetailsV: View {
.accessibilityHidden(true)
.foregroundColor(Color.clear)
// Spacer()
- ShareButton(textToShare: payto)
+ let title = String(localized: "Share the PayTo
URL", comment: "VoiceOver")
+ let minTitle = String(localized: "Share PayTo",
comment: "mini")
+ ShareButton(textToShare: payto, title:
minimalistic ? minTitle : title)
.frame(maxWidth: .infinity, alignment:
.center)
- .accessibilityLabel(Text("Share the PayTo
URL", comment: "VoiceOver"))
+ .accessibilityLabel(Text(title))
.disabled(false)
// Spacer()
} .listRowSeparator(.automatic)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (022a1b3 -> fb443d4), gnunet, 2024/08/09
- [taler-taler-ios] 04/11: DepositWireTypesForCurrency, gnunet, 2024/08/09
- [taler-taler-ios] 03/11: layout, gnunet, 2024/08/09
- [taler-taler-ios] 02/11: ShareButton title,
gnunet <=
- [taler-taler-ios] 01/11: callStack, gnunet, 2024/08/09
- [taler-taler-ios] 11/11: Bump version to 0.12.0 (0.12.9), gnunet, 2024/08/09
- [taler-taler-ios] 05/11: ManualDetailsWireV, gnunet, 2024/08/09
- [taler-taler-ios] 06/11: QRcodesForPayto, gnunet, 2024/08/09
- [taler-taler-ios] 07/11: cleanup, gnunet, 2024/08/09
- [taler-taler-ios] 10/11: ManualDetails, gnunet, 2024/08/09
- [taler-taler-ios] 09/11: currencySymbol, gnunet, 2024/08/09
- [taler-taler-ios] 08/11: German translation, gnunet, 2024/08/09