[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 14/19: CurrencyFormatter
From: |
gnunet |
Subject: |
[taler-taler-ios] 14/19: CurrencyFormatter |
Date: |
Sat, 02 Sep 2023 22:01:15 +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 625b0a5a6c7463e029c8a539997b6372925bc451
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Aug 31 21:13:18 2023 +0200
CurrencyFormatter
---
TalerWallet1/Helper/CurrencyFormatter.swift | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/TalerWallet1/Helper/CurrencyFormatter.swift
b/TalerWallet1/Helper/CurrencyFormatter.swift
index 42f391b..b997731 100644
--- a/TalerWallet1/Helper/CurrencyFormatter.swift
+++ b/TalerWallet1/Helper/CurrencyFormatter.swift
@@ -6,19 +6,22 @@ import Foundation
import taler_swift
public class CurrencyFormatter: NumberFormatter {
- public static var shared = CurrencyFormatter()
+ public static let shared = CurrencyFormatter()
- private override convenience init() {
- self.init(fractionDigits: 2)
- }
-
- public init(fractionDigits: Int) {
+ public override init() {
super.init()
- self.numberStyle = .decimal // currency could be changed by user
- self.minimumFractionDigits = fractionDigits
- self.maximumFractionDigits = fractionDigits
- self.usesGroupingSeparator = true
self.locale = Locale.current
+ self.numberStyle = .currency // currencyISOCode,
currencyPlural, (currencyAccounting)
+ self.numberStyle = .currencyISOCode
+ self.numberStyle = .spellOut
+
+// self.currencyCode = code // EUR, USD, JPY, GBP
+// self.minimumFractionDigits = fractionDigits
+// self.maximumFractionDigits = fractionDigits
+// self.groupingSize = 3 // thousands
+// self.groupingSeparator = ","
+// self.usesGroupingSeparator = true
+// self.decimalSeparator = "."
}
required init?(coder aDecoder: NSCoder) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (735c721 -> 7d32de8), gnunet, 2023/09/02
- [taler-taler-ios] 01/19: Patch for CCCamp, removed extra, bump version to 0.9.3 (18), gnunet, 2023/09/02
- [taler-taler-ios] 03/19: Use sqlite3, gnunet, 2023/09/02
- [taler-taler-ios] 04/19: Rename, gnunet, 2023/09/02
- [taler-taler-ios] 02/19: Changed "Invoice" to "Request" (private mode - "Invoice" will be used in business mode post 1.0), roundedBorder for input fields, gnunet, 2023/09/02
- [taler-taler-ios] 08/19: IntegrationTest on test, gnunet, 2023/09/02
- [taler-taler-ios] 13/19: ScopedCurrencyInfo, SuperScriptDigit, gnunet, 2023/09/02
- [taler-taler-ios] 05/19: Comment, gnunet, 2023/09/02
- [taler-taler-ios] 18/19: Nunito Font, gnunet, 2023/09/02
- [taler-taler-ios] 16/19: Rename, fix, gnunet, 2023/09/02
- [taler-taler-ios] 14/19: CurrencyFormatter,
gnunet <=
- [taler-taler-ios] 09/19: Accessibility String for Payment Sounds, gnunet, 2023/09/02
- [taler-taler-ios] 12/19: CachePath for data not to be backed up, gnunet, 2023/09/02
- [taler-taler-ios] 11/19: Settings: Font: AtkinsonHyperlegible, gnunet, 2023/09/02
- [taler-taler-ios] 19/19: Font Settings, gnunet, 2023/09/02
- [taler-taler-ios] 10/19: Comment, gnunet, 2023/09/02
- [taler-taler-ios] 06/19: Rename, gnunet, 2023/09/02
- [taler-taler-ios] 15/19: group, gnunet, 2023/09/02
- [taler-taler-ios] 07/19: secret-token:secret, gnunet, 2023/09/02
- [taler-taler-ios] 17/19: GNU Taler, Taler Wallet, gnunet, 2023/09/02