[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 21/204: SendAmountV
From: |
gnunet |
Subject: |
[taler-taler-ios] 21/204: SendAmountV |
Date: |
Thu, 05 Dec 2024 23:49:49 +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 f5f19a8aabcf3de80345b01375f433e569f25850
Author: Marc Stibane <marc@taler.net>
AuthorDate: Fri Sep 13 11:52:36 2024 +0200
SendAmountV
---
TalerWallet.xcodeproj/project.pbxproj | 12 ++++++------
.../{SendAmount.swift => SendAmountV.swift} | 20 +++++++++++---------
TalerWallet1/Views/Main/MainView.swift | 16 ++++++++--------
3 files changed, 25 insertions(+), 23 deletions(-)
diff --git a/TalerWallet.xcodeproj/project.pbxproj
b/TalerWallet.xcodeproj/project.pbxproj
index c94231e..88daf91 100644
--- a/TalerWallet.xcodeproj/project.pbxproj
+++ b/TalerWallet.xcodeproj/project.pbxproj
@@ -53,7 +53,7 @@
4E3EAE2D2A990778009F1BE8 /* Model+Exchange.swift in Sources */
= {isa = PBXBuildFile; fileRef = 4E3B4BC82A42BC4800CC88B8 /*
Model+Exchange.swift */; };
4E3EAE2E2A990778009F1BE8 /* QRCodeDetailView.swift in Sources
*/ = {isa = PBXBuildFile; fileRef = 4E5A88F42A38A4FD00072618 /*
QRCodeDetailView.swift */; };
4E3EAE2F2A990778009F1BE8 /* TransactionsEmptyView.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E87C8722A31CB7F001C6406 /*
TransactionsEmptyView.swift */; };
- 4E3EAE312A990778009F1BE8 /* SendAmount.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E40E0BD29F25ABB00B85369 /* SendAmount.swift */;
};
+ 4E3EAE312A990778009F1BE8 /* SendAmountV.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E40E0BD29F25ABB00B85369 /* SendAmountV.swift
*/; };
4E3EAE332A990778009F1BE8 /* EqualIconWidthDomain.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E8E25322A1CD39700A27BFA /*
EqualIconWidthDomain.swift */; };
4E3EAE342A990778009F1BE8 /* SuperScriptDigits.swift in Sources
*/ = {isa = PBXBuildFile; fileRef = 4EBA563E2A7FD9390084948B /*
SuperScriptDigits.swift */; };
4E3EAE352A990778009F1BE8 /* P2pPayURIView.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E578E932A4822D500F21F1C /* P2pPayURIView.swift
*/; };
@@ -140,7 +140,7 @@
4E3EAEA52AA12582009F1BE8 /* Nunito-BoldItalic.ttf in Resources
*/ = {isa = PBXBuildFile; fileRef = 4E3EAEA12AA12582009F1BE8 /*
Nunito-BoldItalic.ttf */; };
4E3EAEA82AA70157009F1BE8 /* Binding+onChange.swift in Sources
*/ = {isa = PBXBuildFile; fileRef = 4E3EAEA72AA70157009F1BE8 /*
Binding+onChange.swift */; };
4E3EAEA92AA70157009F1BE8 /* Binding+onChange.swift in Sources
*/ = {isa = PBXBuildFile; fileRef = 4E3EAEA72AA70157009F1BE8 /*
Binding+onChange.swift */; };
- 4E40E0BE29F25ABB00B85369 /* SendAmount.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E40E0BD29F25ABB00B85369 /* SendAmount.swift */;
};
+ 4E40E0BE29F25ABB00B85369 /* SendAmountV.swift in Sources */ =
{isa = PBXBuildFile; fileRef = 4E40E0BD29F25ABB00B85369 /* SendAmountV.swift
*/; };
4E448AB72C4A4109007D5C92 /* BalancesPendingRowV.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E448AB62C4A4109007D5C92 /*
BalancesPendingRowV.swift */; };
4E448AB82C4A4109007D5C92 /* BalancesPendingRowV.swift in
Sources */ = {isa = PBXBuildFile; fileRef = 4E448AB62C4A4109007D5C92 /*
BalancesPendingRowV.swift */; };
4E4F60A82C3BBF9F003BB669 /* View+Condition.swift in Sources */
= {isa = PBXBuildFile; fileRef = 4E4F60A72C3BBF9F003BB669 /*
View+Condition.swift */; };
@@ -377,7 +377,7 @@
4E3EAEA02AA12582009F1BE8 /* Nunito-Italic.ttf */ = {isa =
PBXFileReference; lastKnownFileType = file; path = "Nunito-Italic.ttf";
sourceTree = "<group>"; };
4E3EAEA12AA12582009F1BE8 /* Nunito-BoldItalic.ttf */ = {isa =
PBXFileReference; lastKnownFileType = file; path = "Nunito-BoldItalic.ttf";
sourceTree = "<group>"; };
4E3EAEA72AA70157009F1BE8 /* Binding+onChange.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= "Binding+onChange.swift"; sourceTree = "<group>"; };
- 4E40E0BD29F25ABB00B85369 /* SendAmount.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= SendAmount.swift; sourceTree = "<group>"; };
+ 4E40E0BD29F25ABB00B85369 /* SendAmountV.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= SendAmountV.swift; sourceTree = "<group>"; };
4E448AB62C4A4109007D5C92 /* BalancesPendingRowV.swift */ = {isa
= PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift;
path = BalancesPendingRowV.swift; sourceTree = "<group>"; };
4E4F60A72C3BBF9F003BB669 /* View+Condition.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= "View+Condition.swift"; sourceTree = "<group>"; };
4E50B34F2A1BEE8000F9F01C /* ManualWithdraw.swift */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path
= ManualWithdraw.swift; sourceTree = "<group>"; };
@@ -875,7 +875,7 @@
4ECB627E2A0BA4DA004ABBB7 /* Peer2peer */ = {
isa = PBXGroup;
children = (
- 4E40E0BD29F25ABB00B85369 /* SendAmount.swift */,
+ 4E40E0BD29F25ABB00B85369 /* SendAmountV.swift
*/,
4E9320442A1645B600A87B0E /*
RequestPayment.swift */,
4E7940DD29FC307C00A9AEA1 /* P2PSubjectV.swift
*/,
4EB3136029FEE79B007D68BC /* P2PReadyV.swift */,
@@ -1216,7 +1216,7 @@
4E3EAE2F2A990778009F1BE8 /*
TransactionsEmptyView.swift in Sources */,
4EEBEFB02C8982180020D340 /*
View+fixedInnerHeight.swift in Sources */,
4E605DAF2AADDD13002FB9A7 /*
UIScreen+screenSize.swift in Sources */,
- 4E3EAE312A990778009F1BE8 /* SendAmount.swift in
Sources */,
+ 4E3EAE312A990778009F1BE8 /* SendAmountV.swift
in Sources */,
4E3EAE332A990778009F1BE8 /*
EqualIconWidthDomain.swift in Sources */,
4EEC11932B83FB7A00146CFF /* SubjectInputV.swift
in Sources */,
E3E48FB52B9B7D5000898A0F /*
Encodable+toJSON.swift in Sources */,
@@ -1348,7 +1348,7 @@
4E87C8732A31CB7F001C6406 /*
TransactionsEmptyView.swift in Sources */,
4EEBEFB12C8982180020D340 /*
View+fixedInnerHeight.swift in Sources */,
4E605DB02AADDD13002FB9A7 /*
UIScreen+screenSize.swift in Sources */,
- 4E40E0BE29F25ABB00B85369 /* SendAmount.swift in
Sources */,
+ 4E40E0BE29F25ABB00B85369 /* SendAmountV.swift
in Sources */,
4E8E25332A1CD39700A27BFA /*
EqualIconWidthDomain.swift in Sources */,
4EEC11942B83FB7A00146CFF /* SubjectInputV.swift
in Sources */,
E3E48FB62B9B7D5000898A0F /*
Encodable+toJSON.swift in Sources */,
diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmount.swift
b/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift
similarity index 97%
rename from TalerWallet1/Views/Actions/Peer2peer/SendAmount.swift
rename to TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift
index 5955ad7..3d7d0b0 100644
--- a/TalerWallet1/Views/Actions/Peer2peer/SendAmount.swift
+++ b/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift
@@ -10,7 +10,7 @@ import taler_swift
import SymLog
// Called when tapping "Send Coins" in the balances list
-struct SendAmount: View {
+struct SendAmountV: View {
private let symLog = SymLogV(0)
let stack: CallStack
let balances: [Balance]
@@ -33,7 +33,7 @@ struct SendAmount: View {
let sendAmountView = ScrollView {
let count = nonZeroBalances.count
if let selectedBalance {
- let urlOrCurrency = selectedBalance.scopeInfo.url?.trimURL()
+ let urlOrCurrency = selectedBalance.scopeInfo.url?.trimURL
?? selectedBalance.scopeInfo.currency
let amount = selectedBalance.available
let formattedAmount = amount.formatted(isNegative: false,
useISO: false)
@@ -52,6 +52,7 @@ struct SendAmount: View {
balanceIndex: $balanceIndex,
amountToTransfer: $amountToTransfer,
summary: $summary,
+ scopeInfo: scopeInfo,
cameraAction: cameraAction)
} // ScrollView
.background(WalletColors().backgroundColor.edgesIgnoringSafeArea(.all))
@@ -88,6 +89,7 @@ struct SendAmountContent: View {
@Binding var balanceIndex: Int
@Binding var amountToTransfer: Amount
@Binding var summary: String
+ let scopeInfo: ScopeInfo
let cameraAction: () -> Void
// TODO: call getMaxPeerPushDebitAmountM
@@ -341,13 +343,13 @@ fileprivate struct Preview_Content: View {
pendingIncoming: pending,
pendingOutgoing: pending,
flags: [])
- SendAmount(stack: CallStack("Preview"),
- balances: [balance],
- selectedBalance: $noBalance,
- amountToTransfer: $amountToPreview,
- summary: $summary,
- scopeInfo: currencyInfo.scope,
- cameraAction: checkCameraAvailable)
+ SendAmountV(stack: CallStack("Preview"),
+ balances: [balance],
+ selectedBalance: $noBalance,
+ amountToTransfer: $amountToPreview,
+ summary: $summary,
+ scopeInfo: currencyInfo.scope,
+ cameraAction: checkCameraAvailable)
}
}
diff --git a/TalerWallet1/Views/Main/MainView.swift
b/TalerWallet1/Views/Main/MainView.swift
index 90b47f8..c6dea36 100644
--- a/TalerWallet1/Views/Main/MainView.swift
+++ b/TalerWallet1/Views/Main/MainView.swift
@@ -321,18 +321,18 @@ extension MainView {
url: DEMOEXCHANGE,
currency: DEMOCURRENCY)
- let sendDest = SendAmount(stack:
stack.push("\(Self.className())()"),
- balances: balances,
- selectedBalance: $selectedBalance, // if
nil shows currency picker
- amountToTransfer: $amountToTransfer, //
with correct currency
- summary: $summary,
- scopeInfo: scope,
- cameraAction: cameraAction)
+ let sendDest = SendAmountV(stack:
stack.push("\(Self.className())()"),
+ balances: balances,
+ selectedBalance: $selectedBalance, //
if nil shows currency picker
+ amountToTransfer: $amountToTransfer, //
currency needs to be updated!
+ summary: $summary,
+ scopeInfo: scope,
+ cameraAction: cameraAction)
let requestDest = RequestPayment(stack:
stack.push("\(Self.className())()"),
balances: balances,
selectedBalance: $selectedBalance,
- amountToTransfer: $amountToTransfer, //
with correct currency
+ amountToTransfer: $amountToTransfer, //
currency needs to be updated!
summary: $summary,
scopeInfo: scope,
cameraAction: cameraAction)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 12/204: cleanup project, (continued)
- [taler-taler-ios] 12/204: cleanup project, gnunet, 2024/12/05
- [taler-taler-ios] 14/204: PaymentInsufficientBalanceDetails, gnunet, 2024/12/05
- [taler-taler-ios] 22/204: Sheet drop bar, gnunet, 2024/12/05
- [taler-taler-ios] 13/204: balances & selectedBalance, move action navigation to MainView, gnunet, 2024/12/05
- [taler-taler-ios] 24/204: @State ScopeInfo.zero, gnunet, 2024/12/05
- [taler-taler-ios] 15/204: GetMaxPeerPushDebitAmount, gnunet, 2024/12/05
- [taler-taler-ios] 17/204: "Transactions" -> currency, gnunet, 2024/12/05
- [taler-taler-ios] 23/204: KeyboardShowingEnvironment, gnunet, 2024/12/05
- [taler-taler-ios] 20/204: Balances uses ScopePicker, Transactions uses static text, gnunet, 2024/12/05
- [taler-taler-ios] 19/204: cleanup, debug, gnunet, 2024/12/05
- [taler-taler-ios] 21/204: SendAmountV,
gnunet <=
- [taler-taler-ios] 31/204: a11y, gnunet, 2024/12/05
- [taler-taler-ios] 33/204: BarGraph 15, trust GetTransactionsV2, gnunet, 2024/12/05
- [taler-taler-ios] 32/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 37/204: debugging, gnunet, 2024/12/05
- [taler-taler-ios] 44/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 50/204: amountLastUsed, gnunet, 2024/12/05
- [taler-taler-ios] 18/204: Unsuccessfull trial to fix TX-Detailview jump onAppear, gnunet, 2024/12/05
- [taler-taler-ios] 26/204: hide TabBarView, gnunet, 2024/12/05
- [taler-taler-ios] 40/204: EMPTYSTRING, gnunet, 2024/12/05
- [taler-taler-ios] 30/204: QrButton in Actions, gnunet, 2024/12/05