taler-ios

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

commit 9fccc3cd88377ebc0568e0be52e00d726c4014e1
parent a2bf12b01ca64f4016d8ebd56219c0f65eaf65b3
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 18 Sep 2025 18:15:08 +0000

cleanup

Diffstat:
MTalerWallet1/Helper/SwiftNFC.swift | 2+-
MTalerWallet1/Views/HelperViews/AmountV.swift | 20++------------------
MTalerWallet1/Views/OIM/OIMp2pReceiveView.swift | 2+-
3 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/TalerWallet1/Helper/SwiftNFC.swift b/TalerWallet1/Helper/SwiftNFC.swift @@ -76,7 +76,7 @@ public class NFCWriter: NSObject, ObservableObject, NFCNDEFReaderSessionDelegate public var startAlert = String(localized: "Hold your iPhone near the tag.") public var endAlert = "" public var msg = "" - public var type = "T" // T=TAG - U=URL + public var type = "T" // T=Text - U=URL public var data: Data? = nil public var session: NFCNDEFReaderSession? diff --git a/TalerWallet1/Views/HelperViews/AmountV.swift b/TalerWallet1/Views/HelperViews/AmountV.swift @@ -81,26 +81,10 @@ struct AmountV: View { } extension AmountV { init(_ scope: ScopeInfo?, _ amount: Amount) { - self.stack = nil - self.scope = scope - self.amount = amount - self.isNegative = false - self.useISO = false - self.strikethrough = false - self.large = false - self.xLarge = false - self.a11yDecSep = nil + self.init(scope, amount, isNegative: false) } init(_ scope: ScopeInfo?, _ amount: Amount, isNegative: Bool?) { - self.stack = nil - self.scope = scope - self.amount = amount - self.isNegative = isNegative - self.useISO = false - self.strikethrough = false - self.large = false - self.xLarge = false - self.a11yDecSep = nil + self.init(scope, amount, isNegative: isNegative, strikethrough: false) } init(_ currency: String, cent: UInt64, isNegative: Bool?) { self.stack = nil diff --git a/TalerWallet1/Views/OIM/OIMp2pReceiveView.swift b/TalerWallet1/Views/OIM/OIMp2pReceiveView.swift @@ -50,7 +50,7 @@ struct OIMp2pReceiveView: View { .resizable() .background(Color.white) .scaledToFit() - .matchedGeometryEffect(id: goal, in: wrapper.namespace) + .matchedGeometryEffect(id: goal, in: wrapper.namespace) } OIMlineView(stack: stack.push(),