I am having a trouble changing selected bar color.
I try to change the tab color as the documentation says.
settings.style.selectedBarBackgroundColor = .yellow
But my selected tab underline color still being black.
Could u please fix that issue?
I found a solution :
put all stylings before super.viewDidLoad()
like this :
override func viewDidLoad() {
settings.style.selectedBarHeight = 3.0
settings.style.buttonBarBackgroundColor = .white
settings.style.buttonBarItemBackgroundColor = .white
settings.style.buttonBarItemTitleColor = .red
settings.style.selectedBarBackgroundColor = .red
super.viewDidLoad()
}
@mehdico Thanks! That works for me
@mehdico Thanks! That help me too
buttonBarView.selectedBar.backgroundColor = UIColor.yellow
Most helpful comment
I found a solution :
put all stylings before super.viewDidLoad()
like this :