How To Customize UITabBar Icon Highlight Color iOS Swift 5

Next Story

How To Change Navigation Bar Color iOS Swift 5

So Tabbed applications are pretty common nowadays.

It is a great design pattern to follow when you are setting up your application.

One of the customizations I was trying to accomplish today was to make the icon highlight in different colors.

Personally, I wanted my current tab to show up in orange instead of blue, so this is what I did.


UITabBar.appearance().tintColor = UIColor.orange

The above code can be customized to make the tint color any UIColor that you want.

You can place this snippet into application didFinishLaunchingWithOptions in the app delegate, or you can change it up to your needs.

Have fun customizing 🙂

https://www.googletagmanager.com/gtag/js?id=UA-63695651-4