taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 216b044e37379beac4c557a90acf459ac500abfa
parent 0b3bab014a73562a1b1259b67d5bc95bb4486588
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 25 Jul 2023 15:59:21 +0200

debug, cleanup

Diffstat:
MTalerWallet1/Helper/playSound.swift | 2+-
MTalerWallet1/Views/Exchange/ManualWithdraw.swift | 2+-
MTalerWallet1/Views/Peer2peer/SendAmount.swift | 10+++++-----
MTalerWallet1/Views/Transactions/TransactionDetailView.swift | 3---
4 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/TalerWallet1/Helper/playSound.swift b/TalerWallet1/Helper/playSound.swift @@ -12,10 +12,10 @@ extension Controller { if number < 999 { let sound = (number == 0) ? "payment_failure" : (number == 1) ? "payment_success" : "PaymentReceived" - logger.log("\(sound, privacy: .public)") let fileURL = URL(fileURLWithPath: "/System/Library/Audio/UISounds/" + sound + ".caf") AudioServicesCreateSystemSoundID(fileURL as CFURL, &soundID) + logger.log("\(sound, privacy: .public) \(soundID)") } else { soundID = UInt32(number) } diff --git a/TalerWallet1/Views/Exchange/ManualWithdraw.swift b/TalerWallet1/Views/Exchange/ManualWithdraw.swift @@ -82,7 +82,7 @@ struct ManualWithdraw: View { symLog.log("onAppear") DebugViewC.shared.setViewID(VIEW_WITHDRAWAL) } - .task(id: centsToTransfer) { + .task(id: centsToTransfer) { // re-run this whenever centsToTransfer changes let amount = Amount.amountFromCents(currency, centsToTransfer) do { withdrawalAmountDetails = try await model.loadWithdrawalDetailsForAmountM(exchange.exchangeBaseUrl, amount: amount) diff --git a/TalerWallet1/Views/Peer2peer/SendAmount.swift b/TalerWallet1/Views/Peer2peer/SendAmount.swift @@ -110,9 +110,9 @@ struct SendAmount_Container : View { } } -struct SendAmount_Previews: PreviewProvider { - static var previews: some View { - SendAmount_Container() - } -} +//struct SendAmount_Previews: PreviewProvider { +// static var previews: some View { +// SendAmount_Container() +// } +//} #endif diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift b/TalerWallet1/Views/Transactions/TransactionDetailView.swift @@ -91,9 +91,6 @@ struct TransactionDetailView: View { TransactionButton(transactionId: common.transactionId, command: .delete, action: deleteAction) } } // Delete button -// if let doneAction { -// DoneButton(doneAction: doneAction) -// } // Done button }.id(viewId) // change viewId to enforce a draw update .listStyle(myListStyle.style).anyView .safeAreaInset(edge: .bottom) {