taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 0f2ad6c051314389caa7fe9c3fe5f402f29d8f3d
parent fecec9d9aba46383f5ba2949e564a93e873e8530
Author: Marc Stibane <marc@taler.net>
Date:   Thu,  7 Nov 2024 21:12:37 +0100

cleanup

Diffstat:
MTalerWallet1/Controllers/TalerWallet1App.swift | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/TalerWallet1/Controllers/TalerWallet1App.swift b/TalerWallet1/Controllers/TalerWallet1App.swift @@ -49,9 +49,6 @@ struct TalerWallet1App: App { .task { try! await controller.initWalletCore(model, setTesting: false) // will (and should) crash on failure } - .onReceive(NotificationCenter.default.publisher(for: UIApplication.didBecomeActiveNotification, object: nil)) { _ in - logger.log("❗️App Did Become Active") - } .onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification, object: nil)) { _ in logger.log("❗️App Will Resign") isActive = false @@ -60,10 +57,9 @@ struct TalerWallet1App: App { logger.log("❗️App Will Enter Foreground") isActive = true } - .onReceive(NotificationCenter.default.publisher(for: UIApplication.willTerminateNotification, object: nil)) { _ in - logger.log("❗️App Will Terminate") + .onReceive(NotificationCenter.default.publisher(for: UIApplication.didBecomeActiveNotification, object: nil)) { _ in + logger.log("❗️App Did Become Active") } - } .onChange(of: phase) { newPhase in switch newPhase {