From 8d7f902344f76b7fc4f647701b6c90d37bc856d2 Mon Sep 17 00:00:00 2001 From: Duraid Abdul Date: Sat, 22 May 2021 02:44:05 -0700 Subject: [PATCH] Update ResizeController.swift --- Sources/LocalConsole/ResizeController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/LocalConsole/ResizeController.swift b/Sources/LocalConsole/ResizeController.swift index 565ed0e..4c80438 100644 --- a/Sources/LocalConsole/ResizeController.swift +++ b/Sources/LocalConsole/ResizeController.swift @@ -114,15 +114,15 @@ class ResizeController { // Ensure initial autolayout is performed unanimated. LCManager.shared.consoleWindow?.layoutIfNeeded() - // Ensure background color animates in right the first time. - LCManager.shared.consoleWindow?.backgroundColor = .clear - if isActive { if LCManager.shared.consoleView.traitCollection.userInterfaceStyle == .light { LCManager.shared.consoleView.layer.shadowOpacity = 0.25 } + // Ensure background color animates in right the first time. + LCManager.shared.consoleWindow?.backgroundColor = .clear + UIViewPropertyAnimator(duration: 0.6, dampingRatio: 1) { LCManager.shared.consoleView.center = self.consoleCenterPoint