taler-ios

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

commit 747a871405ba910c76f55f70cd0dd41c6f688b0e
parent c8e5e5731329ce5a39ac2cab5176acefedaeee3b
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 21 Jun 2026 09:38:15 +0200

show request only in DEBUG

Diffstat:
MTalerWallet1/Views/OIM/OIMbalances.swift | 21++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/TalerWallet1/Views/OIM/OIMbalances.swift b/TalerWallet1/Views/OIM/OIMbalances.swift @@ -177,6 +177,12 @@ struct OIMbalances: View { let enabled = if let available { !available.isZero } else { false } + let showSend = viewState == .chestIsOpen +#if DEBUG + let showRequest = viewState == .chestIsOpen +#else + let showRequest = false +#endif let topButtons = HStack(alignment: .top) { if selectedBalance == nil { let showQR = viewState == .chestsClosed @@ -187,16 +193,17 @@ struct OIMbalances: View { .frame(width: OIMbuttonSize, height: OIMbuttonSize) .matchedGeometryEffect(id: OIMBACK, in: wrapper.namespace, isSource: true) } else { - let showRequest = viewState == .chestIsOpen + + } + Spacer() + VStack { + OIMactionButton(type: .sendP2P, isFinal: false, action: sendTapped) + .frame(width: OIMbuttonSize, height: OIMbuttonSize) + .opacity(showSend ? 1 : INVISIBLE) OIMactionButton(type: .requestP2P, isFinal: false, action: requestTapped) .frame(width: OIMbuttonSize, height: OIMbuttonSize) .opacity(showRequest ? 1 : INVISIBLE) } - Spacer() - let showSend = viewState == .chestIsOpen - OIMactionButton(type: .sendP2P, isFinal: false, action: sendTapped) - .frame(width: OIMbuttonSize, height: OIMbuttonSize) - .opacity(showSend ? 1 : INVISIBLE) } let maxAvailable = cash.max(available: available?.centValue ?? 0) // TODO: centValue factor @@ -255,7 +262,7 @@ struct OIMbalances: View { .frame(width: size, height: size) .zIndex(itsMe ? 3 : 0) .opacity((isClosed || itsMe) ? 1 : INVISIBLE) - .matchedGeometryEffect(id: itsMe ? OIMNUMBER + .matchedGeometryEffect(id: itsMe ? OIMNUMBER // (sending ? OIMBACK : OIMNUMBER) // : String(index), : oimCurrency.currencyStr, in: wrapper.namespace, isSource: false)