commit e862b3ec3e9be9863cb61d72feaec5c61563df44
parent 8736e215bb5593047653e4a67195bbe9963e4a75
Author: Marc Stibane <marc@taler.net>
Date: Tue, 9 Sep 2025 16:37:35 +0200
cleanup
Diffstat:
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift
@@ -483,7 +483,7 @@ extension MainView {
/// NavigationViews for Balances & Settings
let balancesStack = NavigationView {
BalancesListView(stack: stack.push(balancesTitle),
- selectedBalance: $selectedBalance, // for sheets, pass down to TransactionsListView
+ selectedBalance: $selectedBalance, // needed for sheets, gets set in TransactionsListView
reloadTransactions: $shouldReloadTransactions,
qrButtonTapped: $qrButtonTapped)
.navigationTitle(balancesTitle)
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
@@ -20,8 +20,9 @@ func templateFee(ppCheck: PreparePayResult?) -> Amount? {
do {
if let ppCheck {
// Outgoing: fee = effective - raw
- if let effective = ppCheck.amountEffective {
- let fee = try effective - ppCheck.amountRaw
+ if let effective = ppCheck.amountEffective { // , let raw = ppCheck.amountRaw {
+ let raw = ppCheck.amountRaw
+ let fee = try effective - raw
return fee
}
}
@@ -125,7 +126,8 @@ struct PaymentView: View, Sendable {
}
} else {
if let payResponse = try? await model.preparePayForUri(url.absoluteString) {
- amountToTransfer = payResponse.amountRaw
+ let raw = payResponse.amountRaw
+ amountToTransfer = raw
await checkCurrencyInfo(for: payResponse)
preparePayResult = payResponse
}
diff --git a/TalerWallet16.xcodeproj/project.pbxproj b/TalerWallet16.xcodeproj/project.pbxproj
@@ -528,7 +528,6 @@
};
};
buildConfigurationList = D14AFD1824D232B300C51073 /* Build configuration list for PBXProject "TalerWallet16" */;
- compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (