[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.
- [taler-taler-ios] branch master updated (a58f2d9 -> df7fc21), gnunet, 2024/07/27
- [taler-taler-ios] 04/09: Pass in currencyInfo, gnunet, 2024/07/27
- [taler-taler-ios] 05/09: Pass in currencyInfo, gnunet, 2024/07/27
- [taler-taler-ios] 01/09: Pass in currencyInfo,
gnunet <=
- [taler-taler-ios] 06/09: Pass in currencyInfo, gnunet, 2024/07/27
- [taler-taler-ios] 02/09: Pass in currencyInfo, gnunet, 2024/07/27
- [taler-taler-ios] 07/09: UNKNOWN, gnunet, 2024/07/27
- [taler-taler-ios] 08/09: Binding<CurrencyInfo>, gnunet, 2024/07/27
- [taler-taler-ios] 03/09: Pass in currencyInfo, gnunet, 2024/07/27
- [taler-taler-ios] 09/09: cleanup, gnunet, 2024/07/27