[iOS12.5] UITabBarItem selectedImage not working

Hi everyone,

I'm having issue with UITabBarItem's selectedImage is not working only on iOS 12.

Image is in PNG format, already tried with PDF single scale but result still the same.

let vc = HomeViewController.storyboardInstance()
let tabBarItem = UITabBarItem(title: "home".localized(), image: UIImage(named: "tabbar.home.selected"), selectedImage: UIImage(named: "tabbar.home.selected"))
tabBarItem.updateFont()
vc.tabBarItem = tabBarItem
return CustomNavigationController(rootViewController: vc)

I also want to mention that image is working fine with original color (render as Original Image) but selectedImage (render as Original Image) with original color doesn't work.

Does anyone here know what is the problem ?

[iOS12.5] UITabBarItem selectedImage not working
 
 
Q