gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 16/35: rendering on small screens


From: gnunet
Subject: [taler-taler-ios] 16/35: rendering on small screens
Date: Thu, 27 Jul 2023 09:09:49 +0200

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 741d7e0be9a03ed277e2bf93242605aeea97c7f3
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Jul 24 16:09:26 2023 +0200

    rendering on small screens
---
 TalerWallet1/Controllers/DebugViewC.swift          |  1 +
 .../Views/Sheets/P2P_Sheets/P2pAcceptDone.swift    | 43 +++++++++++-----------
 2 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/TalerWallet1/Controllers/DebugViewC.swift 
b/TalerWallet1/Controllers/DebugViewC.swift
index da0a805..f25b353 100644
--- a/TalerWallet1/Controllers/DebugViewC.swift
+++ b/TalerWallet1/Controllers/DebugViewC.swift
@@ -81,6 +81,7 @@ public let SHEET_RCV_REWARD = SHEET_PAYMENT + 10              
      // 150 Recei
 // MARK: P2P Pay Invoice
 // p2p pull debit - openURL (Link or scan QR)
 public let SHEET_PAY_P2P = SHEET_RCV_REWARD + 10                    // 160 Pay 
P2P Invoice
+public let SHEET_PAY_P2P_ACCEPT = SHEET_PAY_P2P + 2                 // 162 Pay 
P2P AcceptView
 
 // MARK: P2P Receive Coins
 // p2p push credit - openURL (Link or scan QR)
diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift 
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
index 6eb706d..e54ce77 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
@@ -26,33 +26,32 @@ struct P2pAcceptDone: View {
         let _ = Self._printChanges()
         let _ = symLog.vlog()       // just to get the # to compare it with 
.onAppear & onDisappear
 #endif
-        let navTitle = incoming ? String(localized: "Received P2P")
-                                : String(localized: "Paid P2P")
-      ScrollViewReader { scrollView in
-        VStack {
-            TransactionDetailView(transactionId: transactionId,
-                                   reloadAction: reloadOneAction,
-                                     doneAction: { dismissTop() })
+        let navTitle = incoming ? String(localized: "Received P2P", comment: 
"Title, short")
+                                : String(localized: "Paid P2P", comment: 
"Title, short")
+        TransactionDetailView(transactionId: transactionId,
+                               reloadAction: reloadOneAction,
+                                 doneAction: { dismissTop() })
             .navigationBarBackButtonHidden(true)
             .interactiveDismissDisabled()           // can only use "Done" 
button to dismiss
             .navigationTitle(navTitle)
-        }.onAppear() {
-            symLog.log("onAppear")
-            DebugViewC.shared.setSheetID(SHEET_RCV_P2P_ACCEPT)
-        }.task {
-            do {
-                if incoming {
-                    _ = try await model.acceptPeerPushCreditM(transactionId)
-                } else {
-                    _ = try await model.confirmPeerPullDebitM(transactionId)
+            .onAppear() {
+                symLog.log("onAppear")
+                DebugViewC.shared.setSheetID(incoming ? SHEET_RCV_P2P_ACCEPT
+                                                      : SHEET_PAY_P2P_ACCEPT)
+            }
+            .task {
+                do {
+                    if incoming {
+                        _ = try await 
model.acceptPeerPushCreditM(transactionId)
+                    } else {
+                        _ = try await 
model.confirmPeerPullDebitM(transactionId)
+                    }
+                    finished = true
+                } catch {    // TODO: error
+                    symLog.log(error.localizedDescription)
+                    controller.playSound(0)
                 }
-                finished = true
-            } catch {    // TODO: error
-                symLog.log(error.localizedDescription)
-                controller.playSound(0)
             }
-        }
-      }
     }
 }
 // MARK: -

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]