From 67c7905acffd808b01d9db884cadc6afaf8ad76e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 1 Jun 2024 10:29:33 -0700 Subject: [PATCH] Fix missing VC callbacks in removeViewAndController --- Tusker/Screens/Utilities/UIViewController+Children.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tusker/Screens/Utilities/UIViewController+Children.swift b/Tusker/Screens/Utilities/UIViewController+Children.swift index d54f2fd1..2c1cdc2c 100644 --- a/Tusker/Screens/Utilities/UIViewController+Children.swift +++ b/Tusker/Screens/Utilities/UIViewController+Children.swift @@ -50,8 +50,11 @@ extension UIViewController { } func removeViewAndController() { + beginAppearanceTransition(false, animated: false) view.removeFromSuperview() + willMove(toParent: nil) removeFromParent() + endAppearanceTransition() } }