gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]