taler-ios

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

commit 8075693de154c75e5fb1d30a4c8c7086db7e9692
parent 35b08ca2781969091a720c6c25184c5f6238ddf9
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 22 Dec 2025 19:20:07 +0100

debugging

Diffstat:
MTalerWallet1/Views/Actions/Banking/DepositAmountV.swift | 3++-
MTalerWallet1/Views/Actions/Banking/ManualWithdraw.swift | 5++++-
MTalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift | 4+++-
MTalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift | 3++-
MTalerWallet1/Views/HelperViews/ScopePicker.swift | 1+
5 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountV.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountV.swift @@ -80,7 +80,8 @@ struct DepositAmountV: View { .padding(.horizontal) } if count > 0 { - ScopePicker(value: $balanceIndex, + ScopePicker(stack: stack.push(), + value: $balanceIndex, onlyNonZero: true) // can only send what exists { index in balanceIndex = index diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift @@ -71,7 +71,10 @@ struct ManualWithdraw: View { let count = controller.balances.count let scrollView = ScrollView { if maySwitchCurrencies && count > 0 { - ScopePicker(value: $balanceIndex, onlyNonZero: false) { index in + ScopePicker(stack: stack.push(), + value: $balanceIndex, + onlyNonZero: false) + { index in balanceIndex = index balance = controller.balances[index] if let balance { diff --git a/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift @@ -91,7 +91,9 @@ struct RequestPayment: View { let _ = symLog.log("count = \(count)") let scrollView = ScrollView { if count > 0 { - ScopePicker(value: $balanceIndex, onlyNonZero: false) + ScopePicker(stack: stack.push(), + value: $balanceIndex, + onlyNonZero: false) { index in balanceIndex = index balance = controller.balances[index] diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift @@ -109,7 +109,8 @@ struct SendAmountV: View { let taskID = balanceIndex + (1000 * controller.currencyTicker) let scrollView = ScrollView { if count > 0 { - ScopePicker(value: $balanceIndex, + ScopePicker(stack: stack.push(), + value: $balanceIndex, onlyNonZero: true) // can only send what exists { index in balanceIndex = index diff --git a/TalerWallet1/Views/HelperViews/ScopePicker.swift b/TalerWallet1/Views/HelperViews/ScopePicker.swift @@ -26,6 +26,7 @@ fileprivate func pickerRow(_ balance: Balance, _ currencyInfo: CurrencyInfo) -> struct ScopePicker: View { // private let symLog = SymLogV(0) + let stack: CallStack @Binding var value: Int let onlyNonZero: Bool let action: (Int) -> Void