1

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 }
  }
}
ben
  • 75
  • 8
  • Possible duplicate of [Check if tabBar is visible on iOS app](https://stackoverflow.com/questions/18206838/check-if-tabbar-is-visible-on-ios-app) – Max von Hippel Jun 22 '17 at 23:51

0 Answers0