In Xcode 11.4 not working: navBar?.barTintColor = something UIColor

In xCode 11.4 not working swift function navBar?.barTintColor

In xCode 11.3 and early, the command is not executed

Replies

P.S. Correction: in xCode 11.3 command are executed correctly

Could you show your exact code ?


Apparently, you have to use appearance.

Don't know if it is intended or a bug.


Have a look at this

https://forums.developer.apple.com/thread/130597

or this tutorial for wift version

h ttps://coderwall.com/p/dyqrfa/customize-navigation-bar-appearance-with-swift