Here are two colors I have:
static let mainDarkBlue = UIColor(r: 40, g: 51, b: 86)
static let mainDarkBlueTransparent = UIColor(r: 40, g: 51, b: 86, a: 0.8)
I have mainDarkBlue
set for a barTint color and that's fine, but there is mainDarkBlueTransparent
which I want to be a selected tabBar item's background color.
tabBar.barTintColor = UIColor.mainDarkBlue
That works fine, but I want to make the color-difference between selected and unselected of my two items.
Also btw, if anyone knows how to make the selected item's shadow please show me.