UITabBarController: tabBar property
The tabBar property is the row of tabs at the bottom of the screen. Use it to change the tabs' colors.
Value
A UITabBar.
- Read-only. Assigning to it throws
TypeError. - Every read returns the same object.
Note: Do not add subviews to
tabBaror change itsframe. What it contains is determined byviewControllers.
Examples
js
const tabs = new UITabBarController();
tabs.tabBar.tintColor = 'systemPink';
console.log(tabs.tabBar === tabs.tabBar, tabs.tabBar.tintColor);Result: the console logs true systemPink.
Corresponding iOS API
UITabBarController.tabBar.