Customize UINavigationBar appearance(color, image, title color) in Swift
Why Stack Overflow recommends it
Stack Overflow users link it when answering questions about iOS navigation bar colors and appearance, such as the difference between tintColor and barTintColor.
Recommended by 2 people across 2 different months, 2016 to 2018.
What it is
A 16-minute Swift tutorial by Sergey Kargopolov on customizing UINavigationBar in iOS. It covers setting the bar background color with barTintColor, title text color, a background image, and the tint colors for the back button and bar button items.
What people said
Recommends Jack Ngai · 2017-06 · Stack Overflow · on “Swift iOS -Programmatic RootViewController is Light Gray?”
It looks like you are configuring the tintColor instead of the barTintColor. The tintColor changes the color for the navigation buttons and the barTintColor adjusts the navigation bar background color. You can watch this video for more details on customizing navigation bar appearance. [this video]
Recommends Rashed · 2018-03 · Stack Overflow · on “Change font of prompt in UINavigationController”
Did you add those in your appdelegate file?. I think you are not putting it in right place. you can see this - [this video]
Cites sMk · 2016-06 · Stack Overflow · on “Xcode code completion missing variables & methods?”
I was following along with this tutorial [this video] , and was very confused when I tried to access: UINavigationBar.appearance().barTintColor The reason I was confused is because Xcode doesn't show "barTintColor" as part of it's code completion. Instead, it offers me "tintColor" and "backgroundColor", both of which do not work like the tutorial. However, when I manually type in "barTintColor" it works correctly. Why would "barTintColor" not show up as part of my code completion? And is there something I can do to avoid similar confusion in the future?