commit 5e7e9afba90c8687f03452c7450d095c60f99c3d
parent ab207777168c283703c89dbce65719e5b7f3e691
Author: Marc Stibane <marc@taler.net>
Date: Tue, 18 Mar 2025 14:28:21 +0100
amount for OIM
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/AmountV.swift b/TalerWallet1/Views/HelperViews/AmountV.swift
@@ -97,6 +97,16 @@ extension AmountV {
self.large = false
self.a11yDecSep = nil
}
+ init(_ currency: String, cent: UInt64, isNegative: Bool?) {
+ self.stack = nil
+ self.scope = nil
+ self.amount = Amount(currency: currency , cent: cent)
+ self.isNegative = isNegative
+ self.useISO = false
+ self.strikethrough = false
+ self.large = false
+ self.a11yDecSep = nil
+ }
init(_ scope: ScopeInfo?, _ amount: Amount, isNegative: Bool?, strikethrough: Bool) {
self.stack = nil
self.scope = scope