To Solve The Issue Of Changing Navigation Bar’s BarTint Color But Not Covering Status Bar’s Color When Using Large Titles In iOS 13
The Issue
When I try to practice adding a Navigation Bar(Using Large Titles)programmatically, I fall into a trouble. Like this:
There’s only a change on normal title’s barTint color, but the large title’s barTint color doesn’t change.
If I also set navigation bar’s background color to red, it will look like this:
The area of status bar isn’t set to red, why??????????
The Solution
I try to use Google to find the answer, and I find two articles about this:
In iOS 13, there are new appearance APIs for bars.
There are three kinds of states of appearance:
So I fix the code to this:
It’s OK!