Fixed missing viewWillAppear for TabBarController children

This commit is contained in:
Peter 2018-10-10 20:11:38 +03:00
parent 3ca633d219
commit 2fe25a6784

View File

@ -207,6 +207,12 @@ open class TabBarController: ViewController {
}
}
override open func viewWillAppear(_ animated: Bool) {
if let currentController = self.currentController {
currentController.viewWillAppear(animated)
}
}
override open func viewDidAppear(_ animated: Bool) {
if let currentController = self.currentController {
currentController.viewDidAppear(animated)