[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 103/204: add amount
From: |
gnunet |
Subject: |
[taler-taler-ios] 103/204: add amount |
Date: |
Thu, 05 Dec 2024 23:51:11 +0100 |
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 baacfb572f479c863044b443f1959f7518daef84
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Nov 8 13:26:10 2024 +0100
add amount
---
TalerWallet1/Views/Transactions/ManualDetailsV.swift | 2 ++
.../Views/Transactions/ManualDetailsWireV.swift | 20 ++++++++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/ManualDetailsV.swift
b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
index 4bf2d16..4b0a88a 100644
--- a/TalerWallet1/Views/Transactions/ManualDetailsV.swift
+++ b/TalerWallet1/Views/Transactions/ManualDetailsV.swift
@@ -151,6 +151,7 @@ struct ManualDetailsV: View {
if let amount = account.transferAmount {
let specs = account.currencySpecification
let amountStr = common.amountRaw.formatted(specs: specs,
isNegative: false)
+ let amountValue = common.amountRaw.valueStr
let obtainStr = common.amountEffective.formatted(specs:
specs, isNegative: false)
// let _ = print(amountStr, " | ", obtainStr)
if !minimalistic {
@@ -196,6 +197,7 @@ struct ManualDetailsV: View {
receiverStr:
receiverStr,
iban: iban,
xTaler: xTaler,
+ amountValue:
amountValue,
amountStr: amountStr,
obtainStr: obtainStr,
account: account)
diff --git a/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift
b/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift
index 0810361..21f3511 100644
--- a/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift
+++ b/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift
@@ -52,6 +52,7 @@ struct ManualDetailsWireV: View {
let receiverStr: String
let iban: String?
let xTaler: String
+ let amountValue: String // string representation of the value,
formatted as "`integer`.`fraction`"
let amountStr: String
let obtainStr: String
let account: WithdrawalExchangeAccountDetails
@@ -98,6 +99,20 @@ struct ManualDetailsWireV: View {
.accessibilityLabel(Text("Copy the IBAN", comment:
"VoiceOver"))
.disabled(false)
} .padding(.top, -8)
+ let amountCode = HStack {
+ VStack(alignment: .leading) {
+ Text("Amount:")
+ .talerFont(.subheadline)
+ Text(amountStr)
+ .monospacedDigit()
+ .padding(.leading)
+ } .frame(maxWidth: .infinity, alignment: .leading)
+ .accessibilityElement(children: .combine)
+ .accessibilityLabel(Text("Amount to transfer", comment:
"VoiceOver"))
+ CopyButton(textToCopy: amountValue, vertical: true)
// only digits + separator, no currency name or symbol
+ .accessibilityLabel(Text("Copy the amount", comment:
"VoiceOver"))
+ .disabled(false)
+ }// .padding(.top, -8)
let xTalerCode = HStack {
VStack(alignment: .leading) {
Text("Account:")
@@ -136,7 +151,6 @@ struct ManualDetailsWireV: View {
: "**Step 3:** Finish the wire transfer of
\(amountNBS) in your banking app or website, then this withdrawal will proceed
automatically. Depending on your bank the transfer can take from minutes to two
working days, please be patient.")
.talerFont(.body)
.multilineTextAlignment(.leading)
- .padding(.top)
Group {
TransferRestrictionsV(amountStr: amountStr,
@@ -157,7 +171,9 @@ struct ManualDetailsWireV: View {
payeeCode.listRowSeparator(.hidden)
xTalerCode.listRowSeparator(.hidden)
}
- step3.listRowSeparator(.visible)
+ amountCode.listRowSeparator(.hidden)
+ .padding(.top)
+ step3 // .padding(.top, 6)
}
}
.navigationTitle(navTitle)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 87/204: cleanup, (continued)
- [taler-taler-ios] 87/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 77/204: info2, gnunet, 2024/12/05
- [taler-taler-ios] 75/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 80/204: scope from balance, gnunet, 2024/12/05
- [taler-taler-ios] 79/204: -Binding, gnunet, 2024/12/05
- [taler-taler-ios] 81/204: iterate over balances, gnunet, 2024/12/05
- [taler-taler-ios] 82/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 90/204: Onboarding, gnunet, 2024/12/05
- [taler-taler-ios] 100/204: Minimalistic date, gnunet, 2024/12/05
- [taler-taler-ios] 93/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 103/204: add amount,
gnunet <=
- [taler-taler-ios] 76/204: CurrencySpecification, gnunet, 2024/12/05
- [taler-taler-ios] 88/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 74/204: - currencyName, gnunet, 2024/12/05
- [taler-taler-ios] 83/204: Comments, gnunet, 2024/12/05
- [taler-taler-ios] 89/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 92/204: take out scroll-end-buttons, gnunet, 2024/12/05
- [taler-taler-ios] 96/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 86/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 91/204: scope instead of currencyInfo, gnunet, 2024/12/05
- [taler-taler-ios] 94/204: wording, gnunet, 2024/12/05