From d0576acd95e2d742cb76deec069b11ae7bfba0be Mon Sep 17 00:00:00 2001 From: Nikita Semenov Date: Tue, 8 Nov 2022 18:06:32 +0300 Subject: [PATCH] fix: chacking for opend logging list view controller --- .../Sources/Views/LoggerWindow/LoggingTogglingWindow.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift b/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift index 7c036bba..7c8fea1e 100644 --- a/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift +++ b/TILogging/Sources/Views/LoggerWindow/LoggingTogglingWindow.swift @@ -88,7 +88,9 @@ public extension UIWindow { return } - if motion == .motionShake, loggingController.isRegisteredForShakingEvent { + if motion == .motionShake, + logginController.isLogsPresented, + loggingController.isRegisteredForShakingEvent { loggingController.openLoggingScreen() } else { super.motionEnded(motion, with: event)