commit 086583d35316e1e01cc4031977d6ecfbfc1fbbdf
parent 08d80993e72c484d9d163bdd5e854e05dffae72c
Author: Marc Stibane <marc@taler.net>
Date: Sat, 27 Jul 2024 12:40:52 +0200
debugging
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/HelperViews/AmountInputV.swift b/TalerWallet1/Views/HelperViews/AmountInputV.swift
@@ -106,7 +106,7 @@ struct AmountInputV: View {
.task(id: amountToTransfer.value) {
// re-compute the fees on every tapped digit or backspace
if let computeFee {
- symLog.log(".task computeFee")
+ symLog.log(".task \(amountToTransfer.value)")
if let result: ComputeFeeResult = await computeFee(amountToTransfer) {
symLog.log("computeFee() finished")
feeStr = result.feeStr
diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift
@@ -47,6 +47,7 @@ struct WithdrawURIView: View {
func loadExchange(_ baseUrl: String) async { // TODO: throws?
if let someExchange = try? await model.getExchangeByUrl(url: baseUrl) {
+ symLog.log("Loaded \(baseUrl.trimURL())")
exchange = someExchange
}
}
@@ -77,6 +78,10 @@ struct WithdrawURIView: View {
}
var body: some View {
+#if PRINT_CHANGES
+ let _ = Self._printChanges()
+ let _ = symLog.vlog() // just to get the # to compare it with .onAppear & onDisappear
+#endif
if possibleExchanges.count > 0 {
if let defaultBaseUrl = defaultExchangeBaseUrl ?? possibleExchanges.first?.exchangeBaseUrl {
VStack {
@@ -182,7 +187,9 @@ struct WithdrawURIView: View {
defaultExchangeBaseUrl = uriInfoResponse.defaultExchangeBaseUrl
possibleExchanges = uriInfoResponse.possibleExchanges
amountIsEditable = uriInfoResponse.editableAmount
+ symLog.log("\(baseUrl.trimURL()) loaded")
await controller.checkInfo(for: baseUrl, model: model)
+ symLog.log("Info(for: \(baseUrl.trimURL())) loaded")
}
// TODO: amount = nil ==> show amount input