Swift 3 UITabBarItem Font

This is a quick tip on how to customize the font for a UITabBarItem in Swift 3.

Suppose you want a larger font than the default, and you’d like it to be red when selected, and black when normal. Here is the code you can use to do that in your viewDidLoad of a given UIViewController.

You can use a similar pattern for other appearance attributes.

Leave a Comment: