Pass viewWillDisappear to tab bar controller children

This commit is contained in:
Peter 2019-01-10 18:09:31 +03:00
parent e1c998ca9d
commit 447d0c6e30

View File

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