Fix missing VC callbacks in removeViewAndController
This commit is contained in:
parent
eacafe87b3
commit
67c7905acf
|
@ -50,8 +50,11 @@ extension UIViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
func removeViewAndController() {
|
func removeViewAndController() {
|
||||||
|
beginAppearanceTransition(false, animated: false)
|
||||||
view.removeFromSuperview()
|
view.removeFromSuperview()
|
||||||
|
willMove(toParent: nil)
|
||||||
removeFromParent()
|
removeFromParent()
|
||||||
|
endAppearanceTransition()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue