Update ResizeController.swift

This commit is contained in:
Duraid Abdul
2021-05-22 02:44:05 -07:00
parent eca9258206
commit 8d7f902344
+3 -3
View File
@@ -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