To remove the header, you can use the code:
let tabBarItems = tabBar.items! as [UITabBarItem] tabBarItems[0].title = nil
To get the icon center tab, use this code
let tabBarItems = tabBar.items! as [UITabBarItem] tabBarItems[0].imageInsets = UIEdgeInsetsMake(6,0,-6,0)
for complete code remove titletext and get center icon
let tabBarItems = tabBar.items! as [UITabBarItem] tabBarItems[0].title = nil tabBarItems[0].imageInsets = UIEdgeInsetsMake(6,0,-6,0)
source share