From eacafe87b3316083e14872b5b52bd2e6bd93b7d6 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 1 Jun 2024 10:28:46 -0700 Subject: [PATCH] Fix logout from current resulting in black screen after switching to reused VC Closes #489 --- .../Screens/Main/AccountSwitchingContainerViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift b/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift index 4eb58e6873..fa6d57cb09 100644 --- a/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift +++ b/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift @@ -123,6 +123,7 @@ class AccountSwitchingContainerViewController: UIViewController { oldRoot.view.transform = CGAffineTransform(translationX: 0, y: -newInitialOffset).scaledBy(x: scale, y: scale) newRoot.view.transform = .identity } completion: { (_) in + oldRoot.view.transform = .identity oldRoot.additionalSafeAreaInsets = origAdditionalSafeAreaInsets oldRoot.removeViewAndController() newRoot.view.layer.masksToBounds = false