I have 3 version of the image, 75 x 75, 50 x 50 and 25 x 25.
When I set it as the tab bar image, I get this effect:
I was expecting the image to be larger and cannot seem to edit this.
I have built my UITabBarController out programmatically.
class MainTabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.isNavigationBarHidden = true
tabBar.isTranslucent = false
tabBar.barTintColor = UIColor.hexStringToUIColor(hex: "EFF4EF")
viewControllers = [
generateNavigationController(with: ChatBotController(), image: #imageLiteral(resourceName: "tabBar_bot_head").withRenderingMode(.alwaysOriginal)),
]
}
fileprivate func generateNavigationController(with rootViewController: UIViewController, image: UIImage) -> UIViewController {
let navController = UINavigationController(rootViewController: rootViewController)
navController.tabBarItem.image = image
return navController
}
}