TabBarViewController.swift
//Change tabbar color
tabBar.barTintColor = UIColor.white
//tabbar background transparency
UITabBar.appearance().backgroundImage = UIImage()
Background transparency
means that TabBar has a frosted glass-like color by default, so remove it.TabBarViewController.swift
//tabbar selection color setting
tabBar.tintColor = UIColor.black
//Tabbar non-selected color settings
tabBar.unselectedItemTintColor = UIColor.gray
Recommended Posts