taler-ios

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

commit b3263a52303afdc01392d2bf1a0a1c70d814bba4
parent aeb1ee851d220de3b15397e23bf10f793f19da38
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 14 Sep 2026 13:42:50 +0200

LINEFEED

Diffstat:
MTalerCommon/Helper/TalerStrings.swift | 2+-
MTalerCommon/HelperViews/GradientBorder.swift | 2+-
MTalerWallet1/Views/Actions/Peer2peer/P2PSubjectV.swift | 2+-
MTalerWallet1/Views/Actions/TwoRowButtons.swift | 2+-
MTalerWallet1/Views/Sheets/Payment/PaymentScan.swift | 4++--
MTalerWallet1/Views/Transactions/ManualDetailsWireV.swift | 4++--
MTalerWallet1/Views/Transactions/QRcodesForPayto.swift | 2+-
MTalerWallet1/Views/Transactions/TransactionTypeDetail.swift | 2+-
8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/TalerCommon/Helper/TalerStrings.swift b/TalerCommon/Helper/TalerStrings.swift @@ -90,7 +90,7 @@ extension String { func tabbed(oneLine: Bool) -> String { let fragments = self.components(separatedBy: "\t") if fragments.count > 1 { - let separator = oneLine ? SPACE : "\n" + let separator = oneLine ? SPACE : LINEFEED return fragments.joined(separator: separator) } return self diff --git a/TalerCommon/HelperViews/GradientBorder.swift b/TalerCommon/HelperViews/GradientBorder.swift @@ -150,7 +150,7 @@ struct BorderWithNFC<Content: View>: View { var totpData: Data { var data = MAGIC_HEADER // 0x42 = "B" - let totpArray = totpString.components(separatedBy: "\n") + let totpArray = totpString.components(separatedBy: LINEFEED) for totpCode in totpArray { if let totpInt = UInt32(totpCode) { let intData = totpInt.data diff --git a/TalerWallet1/Views/Actions/Peer2peer/P2PSubjectV.swift b/TalerWallet1/Views/Actions/Peer2peer/P2PSubjectV.swift @@ -137,7 +137,7 @@ struct P2PSubjectV: View { .focused($isFocused) .onChange(of: summary) { newValue in guard isFocused else { return } - guard newValue.contains("\n") else { return } + guard newValue.contains(LINEFEED) else { return } isFocused = false summary = newValue.replacingOccurrences(of: LINEFEED, with: EMPTYSTRING) } diff --git a/TalerWallet1/Views/Actions/TwoRowButtons.swift b/TalerWallet1/Views/Actions/TwoRowButtons.swift @@ -54,7 +54,7 @@ struct TypeButton: View { #endif let vLayout = VStack { - let fragments = title.components(separatedBy: "\n") + let fragments = title.components(separatedBy: LINEFEED) let fragCount = fragments.count if fragCount > 1 { Text(fragments[0]) diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentScan.swift b/TalerWallet1/Views/Sheets/Payment/PaymentScan.swift @@ -51,8 +51,8 @@ struct PaymentScan: View, Sendable { /// the parameters an already instantiated template order belongs to private var templateKey: String { - url.trimmedString + "\n" - + (amountIsEditable ? amountToTransfer.description : EMPTYSTRING) + "\n" + url.trimmedString + LINEFEED + + (amountIsEditable ? amountToTransfer.description : EMPTYSTRING) + LINEFEED + (summaryIsEditable ? summary : EMPTYSTRING) } diff --git a/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift b/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift @@ -279,10 +279,10 @@ struct ManualDetailsWireV: View { let bePatient = String(localized: "Depending on your bank the transfer can take from minutes to two working days, please be patient.") if let debitIBAN { return minimalistic ? String(localized: "Transfer \(amountNBS) from \(debitIBAN).") - : String(localized: "Finish the wire transfer of \(amountNBS) in your banking app or website to verify your bank account \(debitIBAN).") + "\n" + bePatient + : String(localized: "Finish the wire transfer of \(amountNBS) in your banking app or website to verify your bank account \(debitIBAN).") + LINEFEED + bePatient } return minimalistic ? String(localized: "Transfer \(amountNBS).") - : String(localized: "Finish the wire transfer of \(amountNBS) in your banking app or website, then this withdrawal will proceed automatically.") + "\n" + bePatient + : String(localized: "Finish the wire transfer of \(amountNBS) in your banking app or website, then this withdrawal will proceed automatically.") + LINEFEED + bePatient } /// The subject of the wire transfer diff --git a/TalerWallet1/Views/Transactions/QRcodesForPayto.swift b/TalerWallet1/Views/Transactions/QRcodesForPayto.swift @@ -19,7 +19,7 @@ struct QRcodeCopyShare: View { if let receiverStr = payto.receiver { if let amountStr = payto.amountStr { if let messageStr = option.qrReferenceNumber ?? payto.messageStr { - return String(receiverStr + "\n" + amountStr + "\n" + messageStr) + return String(receiverStr + LINEFEED + amountStr + LINEFEED + messageStr) } } } diff --git a/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift b/TalerWallet1/Views/Transactions/TransactionTypeDetail.swift @@ -59,7 +59,7 @@ struct TransactionTypeDetail: View { func errorHintStack(_ hint: String?, _ stack: String?) -> String? { if let hint, !hint.isEmpty { if let stack, !stack.isEmpty { - return hint + "\n" + stack + return hint + LINEFEED + stack } return hint }