[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 04/12: Self._logChanges()
From: |
gnunet |
Subject: |
[taler-taler-ios] 04/12: Self._logChanges() |
Date: |
Tue, 31 Oct 2023 08:53:01 +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 babe75ae2204dadb6ef2f5f1dd51432fe73b63d7
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Oct 29 15:17:32 2023 +0100
Self._logChanges()
---
TalerWallet1/Views/Main/MainView.swift | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Main/MainView.swift
b/TalerWallet1/Views/Main/MainView.swift
index a53dfb7..301ad27 100644
--- a/TalerWallet1/Views/Main/MainView.swift
+++ b/TalerWallet1/Views/Main/MainView.swift
@@ -139,8 +139,16 @@ extension MainView {
var body: some View {
#if DEBUG
- let _ = Self._printChanges()
- let _ = symLog?.vlog() // just to get the # to compare it
with .onAppear & onDisappear
+ // "@self" marks that the view value itself has changed, and
"@identity" marks that the
+ // identity of the view has changed (that is, that the persistent
data associated with
+ // the view has been recycled for a new instance of the same type)
+ if #available(iOS 17.1, *) {
+ // logs at INFO level, “com.apple.SwiftUI” subsystem, category
“Changed Body Properties”
+ let _ = Self._logChanges()
+ } else {
+ let _ = Self._printChanges()
+ }
+ let _ = symLog?.vlog() // just to get the identity # to
compare with .onAppear & .onDisappear
#endif
Group {
#if TABBAR // Taler Wallet
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (9f7de5c -> 101ccb8), gnunet, 2023/10/31
- [taler-taler-ios] 03/12: string(_ currencyInfo: CurrencyInfo?), gnunet, 2023/10/31
- [taler-taler-ios] 04/12: Self._logChanges(),
gnunet <=
- [taler-taler-ios] 01/12: AmountRowV, gnunet, 2023/10/31
- [taler-taler-ios] 02/12: Use AmountRowV, gnunet, 2023/10/31
- [taler-taler-ios] 06/12: Pending color, sizes, alignment, gnunet, 2023/10/31
- [taler-taler-ios] 09/12: Pending: circle -> diamond, gnunet, 2023/10/31
- [taler-taler-ios] 11/12: use sizeCategory, gnunet, 2023/10/31
- [taler-taler-ios] 10/12: cleanup, debugging, gnunet, 2023/10/31
- [taler-taler-ios] 07/12: Use AmountRowV for transactions, gnunet, 2023/10/31
- [taler-taler-ios] 12/12: Bump version to 0.9.3 (23), gnunet, 2023/10/31
- [taler-taler-ios] 05/12: Minimalistic, gnunet, 2023/10/31
- [taler-taler-ios] 08/12: Layout: View+fitsSideBySide, gnunet, 2023/10/31