taler-ios

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

commit 81e160b603c3f07dadf0dc9e6b2717220e980fd7
parent b32c3b91e021b1fedec4424783835a606d88c9a2
Author: Marc Stibane <marc@taler.net>
Date:   Thu, 24 Apr 2025 12:27:28 +0200

simplify

Diffstat:
MTalerWallet1/Views/OIM/OIMView.swift | 6+++---
MTalerWallet1/Views/OIM/OIMbackground.swift | 3---
2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Views/OIM/OIMView.swift b/TalerWallet1/Views/OIM/OIMView.swift @@ -29,7 +29,7 @@ struct OIMnavBack<Content: View>: View { @Environment(\.dismiss) var dismiss // pop back once var body: some View { - OIMbackground(amount: amount, currencyName: currencyName) { + OIMbackground() { ZStack(alignment: .top) { content() VStack { @@ -121,7 +121,7 @@ struct OIMView: View { .border(.blue) #endif - OIMbackground(amount: available, currencyName: currency.noteBase) { + OIMbackground() { ZStack(alignment: .top) { actions VStack { @@ -175,7 +175,7 @@ struct OIMPayView: View { // let _ = Self._printChanges() let currency = cash.currency - OIMbackground(amount: amount, currencyName: currency.noteBase) { + OIMbackground() { VStack { Spacer() OIMlineView(stack: stack.push(), diff --git a/TalerWallet1/Views/OIM/OIMbackground.swift b/TalerWallet1/Views/OIM/OIMbackground.swift @@ -65,8 +65,6 @@ struct OIMamountV: View { } // MARK: - struct OIMbackground<Content: View>: View { - let amount: Amount? - let currencyName: String var content: () -> Content @Environment(\.colorScheme) private var colorScheme @@ -81,7 +79,6 @@ struct OIMbackground<Content: View>: View { .ignoresSafeArea(edges: .all) .frame(maxWidth: .infinity, maxHeight: .infinity) content() - OIMamountV(amount: amount, currencyName: currencyName) } if #available(iOS 16.4, *) { zStack