[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 157/204: fix flicker
From: |
gnunet |
Subject: |
[taler-taler-ios] 157/204: fix flicker |
Date: |
Thu, 05 Dec 2024 23:52:05 +0100 |
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 3f9543770bf068de40157b99f7a7102b305a3818
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Nov 21 22:08:31 2024 +0100
fix flicker
---
.../Views/Transactions/TransactionSummaryV.swift | 75 +++++++++++-----------
1 file changed, 39 insertions(+), 36 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
index 42d1c1f..9d53b58 100755
--- a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
+++ b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
@@ -117,13 +117,13 @@ struct TransactionSummaryV: View {
let _ = symLog.vlog() // just to get the # to compare it with
.onAppear & onDisappear
#endif
let common = transaction.common
- let pending = transaction.isPending
- let locale = TalerDater.shared.locale
- let (dateString, date) = TalerDater.dateString(common.timestamp,
minimalistic)
- let a11yDate = TalerDater.accessibilityDate(date) ?? dateString
- let navTitle2 = transaction.isDone ? transaction.localizedTypePast
- : transaction.localizedType
- ScrollViewReader { scrollView in
+ if common.type != .dummy {
+ let pending = transaction.isPending
+ let locale = TalerDater.shared.locale
+ let (dateString, date) = TalerDater.dateString(common.timestamp,
minimalistic)
+ let a11yDate = TalerDater.accessibilityDate(date) ?? dateString
+ let navTitle2 = transaction.isDone ? transaction.localizedTypePast
+ : transaction.localizedType
List {
if developerMode {
if transaction.isSuspendable { if let suspendAction {
@@ -222,36 +222,39 @@ struct TransactionSummaryV: View {
} // Delete button
}.id(viewId) // change viewId to enforce a draw update
.listStyle(myListStyle.style).anyView
- } // ScrollViewReader
- .onNotification(.TransactionExpired) { notification in
- // TODO: Alert user that this tx just expired
- if checkDismiss(notification, "newTxState.major == expired =>
dismiss sheet") {
- // TODO: logger.info("newTxState.major == expired =>
dismiss sheet")
+ .onNotification(.TransactionExpired) { notification in
+ // TODO: Alert user that this tx just expired
+ if checkDismiss(notification, "newTxState.major == expired =>
dismiss sheet") {
+ // TODO: logger.info("newTxState.major == expired =>
dismiss sheet")
+ }
}
- }
- .onNotification(.TransactionDone) { notification in
- checkDismiss(notification, "newTxState.major == done => dismiss
sheet")
- }
- .onNotification(.DismissSheet) { notification in
- checkDismiss(notification, "exchangeWaitReserve or withdrawCoins
=> dismiss sheet")
- }
- .onNotification(.PendingReady) { notification in
- checkReload(notification, "pending ready ==> reload for talerURI")
- }
- .onNotification(.TransactionStateTransition) { notification in
- checkReload(notification, "some transition ==> reload")
- }
- .navigationTitle(navTitle ?? navTitle2)
- .task {
- symLog.log("task - load transaction")
- await loadTransaction()
- }
- .onAppear {
- symLog.log("onAppear")
- DebugViewC.shared.setViewID(VIEW_TRANSACTIONSUMMARY, stack:
stack.push())
- }
- .onDisappear {
- symLog.log("onDisappear")
+ .onNotification(.TransactionDone) { notification in
+ checkDismiss(notification, "newTxState.major == done =>
dismiss sheet")
+ }
+ .onNotification(.DismissSheet) { notification in
+ checkDismiss(notification, "exchangeWaitReserve or
withdrawCoins => dismiss sheet")
+ }
+ .onNotification(.PendingReady) { notification in
+ checkReload(notification, "pending ready ==> reload for
talerURI")
+ }
+ .onNotification(.TransactionStateTransition) { notification in
+ checkReload(notification, "some transition ==> reload")
+ }
+ .navigationTitle(navTitle ?? navTitle2)
+ .onAppear {
+ symLog.log("onAppear")
+ DebugViewC.shared.setViewID(VIEW_TRANSACTIONSUMMARY, stack:
stack.push())
+ }
+ .onDisappear {
+ symLog.log("onDisappear")
+ }
+ } else {
+ Color.clear
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ .task {
+ symLog.log("task - load transaction")
+ await loadTransaction()
+ }
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 194/204: A11y, (continued)
- [taler-taler-ios] 194/204: A11y, gnunet, 2024/12/05
- [taler-taler-ios] 136/204: Available for transfer, gnunet, 2024/12/05
- [taler-taler-ios] 192/204: layout, gnunet, 2024/12/05
- [taler-taler-ios] 196/204: Nav header, gnunet, 2024/12/05
- [taler-taler-ios] 189/204: AccountPicker, gnunet, 2024/12/05
- [taler-taler-ios] 142/204: DepositAmountView, gnunet, 2024/12/05
- [taler-taler-ios] 153/204: products, gnunet, 2024/12/05
- [taler-taler-ios] 161/204: DepositWireTypesForCurrency, gnunet, 2024/12/05
- [taler-taler-ios] 150/204: layout improvement, gnunet, 2024/12/05
- [taler-taler-ios] 152/204: fix badge, gnunet, 2024/12/05
- [taler-taler-ios] 157/204: fix flicker,
gnunet <=
- [taler-taler-ios] 198/204: BankEditView, gnunet, 2024/12/05
- [taler-taler-ios] 164/204: amountLabel, gnunet, 2024/12/05
- [taler-taler-ios] 171/204: translations for GNU Taler, gnunet, 2024/12/05
- [taler-taler-ios] 175/204: layout, gnunet, 2024/12/05
- [taler-taler-ios] 177/204: common.scopes.first, gnunet, 2024/12/05
- [taler-taler-ios] 183/204: Section header, gnunet, 2024/12/05
- [taler-taler-ios] 193/204: Sound, gnunet, 2024/12/05
- [taler-taler-ios] 195/204: DepositWireTypes, gnunet, 2024/12/05
- [taler-taler-ios] 167/204: badge + a11y, gnunet, 2024/12/05
- [taler-taler-ios] 166/204: BankListView, gnunet, 2024/12/05