NavigationBar change his color during animation

I have this weird behavior on my navigationBar:
navBar.gif

And I don't know how to fix it. My settings on storyboard are:
navBarStoryboard.settings

I want the bar tint to be .clear so I can have the perfect blur effect.

Any ideas?

Thanks for your attention.

Upvotes: 1

Views: 51

Answers (1)

Adem Özsayın
Adem Özsayın

Reputation: 247

try these settings it may help

self.navigationController?.navigationBar.isOpaque = true
UIApplication.shared.statusBarView?.backgroundColor = UIColor.init(red: 180/255, green: 40/255, blue: 56/255, alpha: 1.0)
self.navigationController?.navigationBar.barTintColor = UIColor.init(red: 180/255, green: 40/255, blue: 56/255, alpha: 1.0)
self.navigationController?.navigationBar.isTranslucent = true
self.navigationController?.view.backgroundColor = UIColor.init(red: 180/255, green: 40/255, blue: 56/255, alpha: 1.0)

Upvotes: 1

Related Questions