commit 7cca9606cf68b59700db70d57168947a16785f59 parent a134e971ef6dadc06bc65840e27046a365fb46dc Author: Marc Stibane <marc@taler.net> Date: Thu, 2 Apr 2026 00:50:12 +0200 Picker Diffstat:
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountV.swift b/TalerWallet1/Views/Actions/Banking/DepositAmountV.swift @@ -83,7 +83,7 @@ struct DepositAmountV: View { .frame(maxWidth: .infinity, alignment: .leading) .padding(.horizontal) } - if count > 0 { + if count > 1 { ScopePicker(stack: stack.push(), value: $balanceIndex, onlyNonZero: true) // can only send what exists @@ -93,7 +93,7 @@ struct DepositAmountV: View { } .padding(.horizontal) .padding(.bottom, 4) - } + } // TODO: else show static text? DepositAmountView(stack: stack.push(), balance: $balance, balanceIndex: $balanceIndex, diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift @@ -70,7 +70,7 @@ struct ManualWithdraw: View { let navTitle = navTitle(currencySymbol, currencyInfo.hasSymbol) let count = controller.balances.count let scrollView = ScrollView { - if maySwitchCurrencies && count > 0 { + if maySwitchCurrencies && count > 1 { ScopePicker(stack: stack.push(), value: $balanceIndex, onlyNonZero: false) @@ -83,7 +83,7 @@ struct ManualWithdraw: View { } .padding(.horizontal) .padding(.bottom, 4) - } + } // TODO: else show static text? if let scope = balance?.scopeInfo ?? exchange?.scopeInfo { let _ = symLog.log("exchange = \(exchange?.exchangeBaseUrl), scope = \(scope.url), amountToTransfer = \(amountToTransfer.currencyStr)") ManualWithdrawContent(stack: stack.push(), diff --git a/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift @@ -104,7 +104,7 @@ struct RequestPayment: View { let count = controller.balances.count let _ = symLog.log("count = \(count)") let scrollView = ScrollView { - if count > 0 { + if count > 1 { ScopePicker(stack: stack.push(), value: $balanceIndex, onlyNonZero: false) @@ -114,7 +114,7 @@ struct RequestPayment: View { } .padding(.horizontal) .padding(.bottom, 4) - } + } // TODO: else show static text? if let balance { RequestPaymentContent(stack: stack.push(), cash: cash, diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountV.swift @@ -114,7 +114,7 @@ struct SendAmountV: View { let _ = symLog.log("count = \(count)") let taskID = balanceIndex + (1000 * controller.currencyTicker) let scrollView = ScrollView { - if count > 0 { + if count > 1 { ScopePicker(stack: stack.push(), value: $balanceIndex, onlyNonZero: true) // can only send what exists @@ -124,7 +124,7 @@ struct SendAmountV: View { } .padding(.horizontal) .padding(.bottom, 4) - } + } // TODO: else show static text? if let balance { SendAmountView(stack: stack.push(), cash: cash, diff --git a/TalerWallet1/Views/HelperViews/ScopePicker.swift b/TalerWallet1/Views/HelperViews/ScopePicker.swift @@ -37,7 +37,7 @@ struct CurrencyPicker: View { let _ = Self._printChanges() #endif let count = exchanges.count - if (count > 0) { + if (count > 0) { // TODO: 1? Picker(EMPTYSTRING, selection: $selected) { ForEach(0..<count, id: \.self) { index in let exchange = exchanges[index] @@ -54,7 +54,7 @@ struct CurrencyPicker: View { action(newValue) } - } + } // TODO: else show static text? } } struct ScopePicker: View {