I have a form that should be completed from the user, which is split between 3 UITabBarItems
in 1 UITabBarController
. I would like to change UITabBarItem
's image dynamically. For example, the user is on the first step and right after he completes the configuration needed on that step I want the UITabBarItem
that is responsible for this UIViewController
to change its image to a tick indicating that the user can proceed to step two
I tried to set the tabBarItem in the current view controller to an image when all the values are completed, but it didn't work
if manufacturerCompleted
&& modelCompleted
{
let image = UIImage(named: "tick")
self.tabBarItem.image = image?.withRenderingMode(.automatic)
}
Thank you in advance! :)