summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Stibane <marc@taler.net>2023-10-29 15:17:32 +0100
committerMarc Stibane <marc@taler.net>2023-10-29 15:17:32 +0100
commitbabe75ae2204dadb6ef2f5f1dd51432fe73b63d7 (patch)
treebd3bc292213620f2e4da133a3f3a39489a5fae18
parent262d4d194e09f7e1cd72437d13b486928d3e9e1e (diff)
downloadtaler-ios-babe75ae2204dadb6ef2f5f1dd51432fe73b63d7.tar.gz
taler-ios-babe75ae2204dadb6ef2f5f1dd51432fe73b63d7.tar.bz2
taler-ios-babe75ae2204dadb6ef2f5f1dd51432fe73b63d7.zip
Self._logChanges()
-rw-r--r--TalerWallet1/Views/Main/MainView.swift12
1 files 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