commit 39a19ec9ac60d7459156662409cbc5576fb8db3d
parent e862b3ec3e9be9863cb61d72feaec5c61563df44
Author: Marc Stibane <marc@taler.net>
Date: Tue, 9 Sep 2025 16:45:50 +0200
prepare OIM
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
@@ -66,6 +66,8 @@ struct P2pReceiveURIView: View {
#endif
VStack {
if let peerPushCreditResponse {
+ let scope = peerPushCreditResponse.scopeInfo
+ let balance = controller.balance(for: scope)
let tosAccepted = exchange?.tosStatus == .accepted
if !tosAccepted {
ToSButtonView(stack: stack.push(),
@@ -126,6 +128,18 @@ struct P2pReceiveURIView: View {
.padding(.horizontal)
}
}
+#if OIM && DEBUG
+ .overlay { if #available(iOS 16.4, *) {
+ if controller.oimSheetActive {
+ OIMp2pReceiveView(stack: stack.push(),
+ cash: cash,
+ available: balance?.available,
+ peerPushCreditResponse: $peerPushCreditResponse,
+ fwdButtonTapped: $accept)
+ .environmentObject(NamespaceWrapper(namespace)) // keep OIMviews apart
+ }
+ } }
+#endif
} else {
#if DEBUG
let message = url.host