Closed yarodevuci closed 6 years ago
Forgive my untrained eye, but I don't see a radical change in popup bar and navigation bar color. The prominent popup bar is intended to have a very slight shift in color. Remember that it takes its coloring from the toolbar, not the navigation bar, so apply all customization on that as well.
yes but on your example nav and popupbar having exact same colors. So i need to set toolbar color to whatever color is for nav bar @LeoNatan ? I did that if you saw that navigationController?.toolbar.tintColor = .splashBlue and there is no changes
You are using the wrong tint color property. Use barTintColor
.
@LeoNatan it is still looks slightly darker. My nav bar is Translucent and I set translucency to bottom bar too but that does not help. Anything else I can try ?
My cleaned up code is
navigationController?.toolbar.barStyle = .black
navigationController?.toolbar.barTintColor = .splashBlue
navigationController?.popupBar.tintColor = .white
navigationController?.updatePopupBarAppearance()
Try adding a little alpha to the .splashBlue
.
@LeoNatan is there anyway to disable UIVisualEffectView?
If you disable the popup bar translucency, the effect view is hidden and only the bar tint color will remain. But you lose translucency, which is not what you want, I think.
Right, I even took this line code off navigationController?.toolbar.barTintColor = .splashBlue and color remained the same
You can apply the customization directly to the popup bar. Set inheritsVisualStyleFromDockingView
to false
, and then apply your customization there.
For more info, https://github.com/LeoNatan/LNPopupController/blob/master/LNPopupController/LNPopupController/LNPopupBar.h
Did not helped either, but I ll close the issue for now. @LeoNatan
I went through example, tried different code and I am getting weird results.
Here is my code. What I am doing wrong? I don't have tabBarController. I am using just regular TableViewController with NavBar. Hopefully @LeoNatan can help.