Swift: Change the image tint color of tab bar? Swift: Change the image tint color of tab bar? ios ios

Swift: Change the image tint color of tab bar?


In your 'application:didFinishLaunchingWithOptions'

(window?.rootViewController as! UITabBarController).tabBar.tintColor = UIColor.red

or use appearance delegate.

UITabBar.appearance().tintColor = UIColor.red


Another good solution:

Add Runtime Color attribute named "tintColor".

It will change image tint color as well as title tint color.

enter image description here

enter image description here


Go to AppDelegate.swift file. In 'application:didFinishLaunchingWithOptions' write:

UITabBar.appearance().unselectedItemTintColor = UIColor.red