The code below seems to only work if the viewcontroller is child of the tabbarcontroller.
var tabHeight: Int {
if let tabBar = self.tabBarController?.tabBar {
if !tabBar.isHidden { return tabBar.frame.height }
}
}
The code below seems to only work if the viewcontroller is child of the tabbarcontroller.
var tabHeight: Int {
if let tabBar = self.tabBarController?.tabBar {
if !tabBar.isHidden { return tabBar.frame.height }
}
}