taler-ios

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

commit aca942ba688252c87e07adef5a3f596fc265c913
parent 91634137216a069ec5dc82894c856bea2329c7c0
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 31 Aug 2025 20:17:31 +0200

prepare OIM activation

Diffstat:
MTalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift @@ -27,6 +27,7 @@ struct P2pReceiveURIView: View { @State private var currencyInfo: CurrencyInfo = CurrencyInfo.zero(UNKNOWN) @State private var peerPushCreditResponse: PreparePeerPushCreditResponse? = nil + @State private var accept: Bool = false @State private var exchange: Exchange? = nil let navTitle = String(localized: "Receive", comment: "Nav Title") @@ -100,9 +101,13 @@ struct P2pReceiveURIView: View { let destination = P2pAcceptDone(stack: stack.push(), transactionId: peerPushCreditResponse.transactionId, incoming: true) - NavigationLink(destination: destination) { - Text("Accept and receive") // SHEET_RCV_P2P_ACCEPT + let actions = Group { + NavLink($accept) { destination } } + Button("Accept and receive") { // SHEET_RCV_P2P_ACCEPT + accept = true + } + .background(actions) .buttonStyle(TalerButtonStyle(type: .prominent)) .padding(.horizontal) }