[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.
- [taler-taler-ios] 27/35: Postpone update until onAppear, (continued)
- [taler-taler-ios] 27/35: Postpone update until onAppear, gnunet, 2023/07/27
- [taler-taler-ios] 31/35: Expired, pending, gnunet, 2023/07/27
- [taler-taler-ios] 35/35: iOS: bump version to 0.9.3 (16), gnunet, 2023/07/27
- [taler-taler-ios] 22/35: extension TransactionsListView.Content => TransactionsRowsView, gnunet, 2023/07/27
- [taler-taler-ios] 21/35: fanblades.slash and clock.badge.xmark not in iOS 15, gnunet, 2023/07/27
- [taler-taler-ios] 13/35: SendDone, gnunet, 2023/07/27
- [taler-taler-ios] 17/35: Warnings and hints no longer use "coins", gnunet, 2023/07/27
- [taler-taler-ios] 26/35: debug, cleanup, gnunet, 2023/07/27
- [taler-taler-ios] 30/35: small fixes, gnunet, 2023/07/27
- [taler-taler-ios] 32/35: TransactionDetailView, gnunet, 2023/07/27
- [taler-taler-ios] 16/35: rendering on small screens,
gnunet <=
- [taler-taler-ios] 34/35: ScrollViewReader, gnunet, 2023/07/27
- [taler-taler-ios] 20/35: ToS, move Exchange down, gnunet, 2023/07/27
- [taler-taler-ios] 29/35: show up to 3 transactions in Balances, gnunet, 2023/07/27
- [taler-taler-ios] 33/35: Comments, gnunet, 2023/07/27
- [taler-taler-ios] 15/35: ToS, gnunet, 2023/07/27
- [taler-taler-ios] 24/35: ToS, gnunet, 2023/07/27
- [taler-taler-ios] 23/35: Hints for manual withdrawal, Accessibility, gnunet, 2023/07/27
- [taler-taler-ios] 28/35: QRcode rendering and hint, gnunet, 2023/07/27