commit 04ba925201b13c7bcac26717007428ffbaf5027f parent 9d37e2ea036bb065ebec82fa1f07526cebd865c0 Author: Marc Stibane <marc@taler.net> Date: Wed, 11 Sep 2024 08:15:24 +0200 cleanup Diffstat:
4 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/TalerWallet.xcodeproj/project.pbxproj b/TalerWallet.xcodeproj/project.pbxproj @@ -743,8 +743,8 @@ isa = PBXGroup; children = ( 4EB095412989CBFE0043A8A1 /* Main */, - 4EB095342989CBFE0043A8A1 /* Balances */, 4EE77E832C1012F7007C9064 /* Actions */, + 4EB095342989CBFE0043A8A1 /* Balances */, 4EB0952E2989CBFE0043A8A1 /* Transactions */, 4EB095272989CBFE0043A8A1 /* Banking */, 4EB095242989CBFE0043A8A1 /* Settings */, diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift @@ -45,7 +45,7 @@ struct BalancesSectionView { @State private var completedTransactions: [Transaction] = [] @State private var recentTransactions: [Transaction] = [] @State private var pendingTransactions: [Transaction] = [] - @State private var currencyInfo: CurrencyInfo = CurrencyInfo.zero(UNKNOWN) + @State private var currencyInfo = CurrencyInfo.zero(UNKNOWN) @State private var currencyName: String = UNKNOWN @State private var currencySymbol: String = UNKNOWN // @State private var buttonSelected: Int? = nil @@ -184,6 +184,7 @@ extension BalancesSectionView: View { // .accessibilityHint(String(localized: "Will go to the demo shop website.")) // .listRowSeparator(.hidden) // } + // DepositWithdrawV(stack: stack.push(), // currencyInfo: $currencyInfo, // scopeInfo: balance.scopeInfo, diff --git a/TalerWallet1/Views/HelperViews/AmountInputV.swift b/TalerWallet1/Views/HelperViews/AmountInputV.swift @@ -94,12 +94,6 @@ struct AmountInputV: View { .foregroundColor(WalletColors().secondary(colorScheme, colorSchemeContrast)) .padding(4) } - if let available { - Text("Available:\t\(available)") - .talerFont(.title3) - .padding(.bottom, 2) -// .accessibility(sortPriority: 3) - } // available CurrencyInputView(currencyInfo: $currencyInfo, amount: $amountToTransfer, available: amountAvailable, diff --git a/TalerWallet1/Views/Transactions/ManualDetailsV.swift b/TalerWallet1/Views/Transactions/ManualDetailsV.swift @@ -86,8 +86,8 @@ struct AccountPicker: View { @State private var selectedAccount = 0 var body: some View { - Picker(title, selection: $selectedAccount, content: { - ForEach(0..<accountDetails.count, id: \.self, content: { index in + Picker(title, selection: $selectedAccount) { + ForEach(0..<accountDetails.count, id: \.self) { index in let detail = accountDetails[index] if let amount = detail.transferAmount { let amountStr = amount.formatted(isNegative: false, useISO: false) @@ -100,8 +100,8 @@ struct AccountPicker: View { .tag(index) } } - }) - }) + } + } .talerFont(.title3) .pickerStyle(.menu) .onAppear() {