gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 01/09: Pass in currencyInfo


From: gnunet
Subject: [taler-taler-ios] 01/09: Pass in currencyInfo
Date: Sat, 27 Jul 2024 08:51:51 +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 a34da741382631477457ee005fce97ae46544be5
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jul 25 13:47:07 2024 +0200

    Pass in currencyInfo
---
 TalerWallet1/Views/HelperViews/AmountV.swift | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/AmountV.swift 
b/TalerWallet1/Views/HelperViews/AmountV.swift
index 071218b..47a199e 100644
--- a/TalerWallet1/Views/HelperViews/AmountV.swift
+++ b/TalerWallet1/Views/HelperViews/AmountV.swift
@@ -10,6 +10,7 @@ import taler_swift
 
 struct AmountV: View {
     let stack: CallStack?
+    let currencyInfo: CurrencyInfo
     let amount: Amount
     let isNegative: Bool        // if true, show a "-" before the amount
     let large: Bool             // set to false for QR or IBAN
@@ -17,7 +18,7 @@ struct AmountV: View {
     @EnvironmentObject private var controller: Controller
 
     var body: some View {
-        Text(amount.formatted(isNegative: isNegative))
+        Text(amount.formatted(currencyInfo, isNegative: isNegative))
             .multilineTextAlignment(.center)
             .talerFont(large ? .title : .title2)
 //            .fontWeight(large ? .medium : .regular)       // @available(iOS 
16.0, *)
@@ -26,8 +27,9 @@ struct AmountV: View {
     }
 }
 extension AmountV {
-    init(_ amount: Amount, isNegative: Bool) {
+    init(_ currencyInfo: CurrencyInfo, _ amount: Amount, isNegative: Bool) {
         self.stack = nil
+        self.currencyInfo = currencyInfo
         self.amount = amount
         self.isNegative = isNegative
         self.large = false

-- 
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]