Fix missing VC callbacks in removeViewAndController

This commit is contained in:
Shadowfacts 2024-06-01 10:29:33 -07:00
parent eacafe87b3
commit 67c7905acf
1 changed files with 3 additions and 0 deletions

View File

@ -50,8 +50,11 @@ extension UIViewController {
}
func removeViewAndController() {
beginAppearanceTransition(false, animated: false)
view.removeFromSuperview()
willMove(toParent: nil)
removeFromParent()
endAppearanceTransition()
}
}