check bottom bar height in swift code example
Example: get height of navigation bar swift
let navigationBarHeight: CGFloat = self.navigationController!.navigationBar.frame.height
let navigationBarHeight: CGFloat = self.navigationController!.navigationBar.frame.height