taler-ios

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

commit bd4aba81a7f8d254aca342101a6b12fc803758a7
parent b3263a52303afdc01392d2bf1a0a1c70d814bba4
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 14 Sep 2026 14:28:25 +0200

copy/share also emits https links

Diffstat:
MTalerWallet1/Views/HelperViews/QRCodeDetailView.swift | 10++++++++--
MTalerWallet1/Views/Transactions/TransactionSummaryList.swift | 1-
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift @@ -11,7 +11,6 @@ import AVFoundation struct QRCodeDetailView: View { let talerURI: String - let talerCopyShare: String let incoming: Bool let amount: Amount let scope: ScopeInfo? @@ -60,6 +59,13 @@ struct QRCodeDetailView: View { defaultValue: "Scan this to receive \(amountS)", comment: "e.g. '$ 7.41'") } + private var talerCopyShare: String { + if talerURI.hasPrefix("taler://") { + let httpString = String("https://wallet.taler.net/link#\(talerURI.dropFirst(8))") + return talerURI + LINEFEED + httpString + } + return talerURI + } var body: some View { if talerURI.count > 10 { @@ -116,7 +122,7 @@ struct QRCodeDetailView: View { // var body: some View { // let amount = Amount(currency: LONGCURRENCY, cent: 123) // List { -// QRCodeDetailView(talerURI: previewURI, talerCopyShare: previewURI, incoming: false, amount: amount) +// QRCodeDetailView(talerURI: previewURI, incoming: false, amount: amount) // } // } //} diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift @@ -474,7 +474,6 @@ struct TransactionSummaryList: View { if let talerURI = details[TALERURI] { if talerURI.count > 10 { QRCodeDetailView(talerURI: talerURI, - talerCopyShare: talerURI, incoming: transaction.isP2pIncoming, amount: transaction.common.amountRaw, scope: transaction.common.scopes.first)