taler-ios

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

commit 8e586b60022e3682d49c4e259917f3b847f1e4cb
parent fb51bdf67e11189427b50707f11ca160778e584f
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 15 Jun 2025 09:40:49 +0200

cleanup

Diffstat:
MTalerWallet1/Views/Balances/BalancesSectionView.swift | 2--
MTalerWallet1/Views/OIM/OIMlineView.swift | 4----
MTalerWallet1/Views/Settings/AboutView.swift | 3++-
MTalerWallet1/Views/Transactions/ManualDetailsWireV.swift | 6+++---
MTalerWallet1/Views/Transactions/TransactionSummaryV.swift | 2+-
5 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift @@ -77,8 +77,6 @@ struct BalancesSectionView { scope: balance.scopeInfo, filterByState: .nonfinal, includeRefreshes: developerMode) { -// let pending = WalletModel.pendingTransactions(transactions) -// withAnimation { pendingTransactions = pending } withAnimation { pendingTransactions = transactions } } } diff --git a/TalerWallet1/Views/OIM/OIMlineView.swift b/TalerWallet1/Views/OIM/OIMlineView.swift @@ -22,10 +22,6 @@ struct OIMlineView: View { let canEdit: Bool @EnvironmentObject private var wrapper: NamespaceWrapper - @AppStorage("oimTwoRows") var oimTwoRows: Bool = false - - @State private var flying: UInt64 = 0 // needed for iOS 15 - @State private var myTappedVal: UInt64 = 0 var body: some View { // let _ = Self._printChanges() diff --git a/TalerWallet1/Views/Settings/AboutView.swift b/TalerWallet1/Views/Settings/AboutView.swift @@ -47,7 +47,8 @@ struct AboutView: View { List { #if TALER_NIGHTLY || GNU_TALER if #available(iOS 18.3, *) { - let talerURI = "taler://withdraw-exchange/exchange.taler-ops.ch" + let talerURI = TALER_NET +// let talerURI = "taler://withdraw-exchange/exchange.taler-ops.ch" BorderWithNFC(talerURI: talerURI, size: size) { rotatingTaler } diff --git a/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift b/TalerWallet1/Views/Transactions/ManualDetailsWireV.swift @@ -57,10 +57,10 @@ struct TransferRestrictionsV: View { } if let restrictions { ForEach(restrictions) { restriction in - if let hintsI18 = restriction.human_hint_i18n { -// let sortedDict = OrderedDictionary(uniqueKeys: hintsI18.keys, values: hintsI18.values) + if let hintsI18n = restriction.human_hint_i18n { +// let sortedDict = OrderedDictionary(uniqueKeys: hintsI18n.keys, values: hintsI18n.values) // var sorted: OrderedDictionary<String:String> - let sortedDict = OrderedDictionary(uncheckedUniqueKeysWithValues: hintsI18.sorted { $0.key < $1.key }) + let sortedDict = OrderedDictionary(uncheckedUniqueKeysWithValues: hintsI18n.sorted { $0.key < $1.key }) Picker("Restriction:", selection: $selectedLanguage) { ForEach(sortedDict.keys, id: \.self) { Text(sortedDict[$0] ?? "missing hint") diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift @@ -134,7 +134,7 @@ struct TransactionSummaryV: View { let common = transaction.common if common.type != .dummy { let scope = common.scopes.first // might be nil if scopes == [] - let pending = transaction.isPending +// let pending = transaction.isPending let locale = TalerDater.shared.locale let (dateString, date) = TalerDater.dateString(common.timestamp, minimalistic) let a11yDate = TalerDater.accessibilityDate(date) ?? dateString