1
votes

I have a translucent navigation bar with blurred content.

I want to push a new view controller with another translucent navigation bar but no content to blur (yet), so I do a simple navigationController?.pushViewController(vc, animated: true).

However, during transition the old navigation bar overrides the new one for a split second, then it goes back to normal. How to avoid this and achieve a smooth transition?

I tried playing with isTranslucent property of navigation bar inside viewWillAppear but no luck.

Here's a gif to understand the problem:

enter image description here

1
I have tried overriding isViewLoaded but I realised I actually don't have any code for updating the navigation bar, since it's the same as the previous view controller. I have tried this answer too but I don't know what to put in there to update the navigation bar appearance. - John Doe
Have the same problem, and can't find the solution. Have you found it? Thank you in advance. - Alexey Chekanov

1 Answers

0
votes

To keep the navigation bar translucent while and after transition, check the "Under Top Bars" property in the inspector. enter image description here