taler-ios

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

commit f9b475800b840db4c5641c722ae1bffc77143236
parent c0636cfc3739bffd60864588d7c3315ccf628638
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 11 Jun 2026 10:33:45 +0200

cleanup

Diffstat:
MTalerWallet1/Views/Main/WalletEmptyView.swift | 30+++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift @@ -43,7 +43,7 @@ struct ProdSectionView: View { .talerFont(.headline) Text("To make your first payment, withdraw digital cash.") .talerFont(.body) - } else if !developerMode { + } else { Button(action: buttonAction) { HStack(alignment: .firstTextBaseline) { Text("Currently you have only demo cash.") @@ -70,28 +70,28 @@ struct ProdSectionView: View { #endif if (showDropdown) { #if !TALER_WALLET - if developerMode { - if defaultExchanges.count > 1 { - CurrencyPicker(stack: stack.push(), value: $selectedCurrency, - exchanges: defaultExchanges) { index in - selectedCurrency = index + if developerMode { + if defaultExchanges.count > 1 { + CurrencyPicker(stack: stack.push(), value: $selectedCurrency, + exchanges: defaultExchanges) { index in + selectedCurrency = index + } } } - } #endif - let defaultExchange = defaultExchanges[selectedCurrency < count ? selectedCurrency : 0] - let currency = defaultExchange.currency - let title = String(localized: "LinkTitle_Withdraw", defaultValue: "Withdraw \(currency)") - Button(title) { - if let talerUri = URL(string: defaultExchange.talerUri) { - controller.talerURI = talerUri + let defaultExchange = defaultExchanges[selectedCurrency < count ? selectedCurrency : 0] + let currency = defaultExchange.currency + let title = String(localized: "LinkTitle_Withdraw", defaultValue: "Withdraw \(currency)") + Button(title) { + if let talerUri = URL(string: defaultExchange.talerUri) { + controller.talerURI = talerUri + } } - } .buttonStyle(TalerButtonStyle(type: isEmpty ? .prominent : .bordered, narrow: false, disabled: disabled, aligned: .center)) - .padding(.bottom) + .padding(.bottom, 6) } // showDropdown } header: { if isEmpty {