0

For some reason my iPhone/Simulator incorrectly interprets the black when I assign it to the tabBar.

enter image description here

UITabBar:

func setupViewController(){
    tabBar.barTintColor = .black
 }

The custom button:

func setupMiddleButton() {
    let menuButton = UIButton(frame: CGRect(x: 0, y: 0, width: 74, height: 74))

    ...

    menuButton.backgroundColor = .black
    tabBar.addSubview(menuButton)
}

I'd like that the tabBar color is true black (#000000) as the round button. I also tested it with other colors, the problem (difference) is the same. Any hint would be very kind!

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Tyrus Rechs
  • 73
  • 2
  • 12

0 Answers0