Fix logout from current resulting in black screen after switching to reused VC

Closes #489
This commit is contained in:
Shadowfacts 2024-06-01 10:28:46 -07:00
parent 2a53b24487
commit eacafe87b3

View File

@ -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