commit 8a4ada88ed032740fc28f99dd5574a2598403591
parent 60b7d6f7232214dbf9e2da26beb0ad6718453e81
Author: Marc Stibane <marc@taler.net>
Date: Fri, 10 Jul 2026 10:36:04 +0200
minimalistic
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/Main/WalletEmptyView.swift b/TalerWallet1/Views/Main/WalletEmptyView.swift
@@ -25,6 +25,7 @@ struct ProdSectionView: View {
@AppStorage("developerMode") var developerMode: Bool = false
#endif
@AppStorage("preferredColorScheme") var preferredColorScheme: Int = 0
+ @AppStorage("minimalistic") var minimalistic: Bool = false
@State private var selectedCurrency: Int = 0
@@ -49,8 +50,12 @@ struct ProdSectionView: View {
.talerFont(.body)
Button(action: buttonAction) {
HStack(alignment: .firstTextBaseline) {
- Text("Currently you have only demo cash.")
- .talerFont(.body)
+ if minimalistic {
+ withdraw
+ } else {
+ Text("Currently you have only demo cash.")
+ .talerFont(.body)
+ }
Spacer()
chevron.rotationEffect(.degrees((showRealCashHint ? -180 : 0)))
.accessibilityHidden(true)
@@ -60,7 +65,7 @@ struct ProdSectionView: View {
: "Show available real money withdrawals"))
.contentShape(.rect) // can tap in background also
} .buttonStyle(.plain)
- if showRealCashHint {
+ if showRealCashHint && !minimalistic {
withdraw
.padding(.vertical, -16)
}