UINavigationBar change colors on push : <p>I'm using 2 different bar tint colors at <code>UINavigationBar</code> in different views. I'n changing color with that method in both views:</p>

<pre><code>override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(animated)
    self.navigationController?.navigationBar.barTintColor = COLOR
}
</code></pre>

<p>When I tap on back button color is not changed smoothly (you can see blink on last second).</p>

<p><a href="https://i.stack.imgur.com/2J27k.gif"><img src="https://i.stack.imgur.com/2J27k.gif" alt="Visual bug"></a></p>

<p>But everything is okay if just swipe view back instead of tapping on back button.</p>

<p><a href="https://i.stack.imgur.com/vYc3o.gif"><img src="https://i.stack.imgur.com/vYc3o.gif" alt="No visual bug"></a></p>

<p>How to make smooth transition in both situations?</p>
