I have a navigation controller with a root view controller and two sibling child view controllers.
The root view controller hides the navigation bar using setNavigationBarHidden. The first view controller shows the navigation bar and has background images applied to the navigation bar buttons using the iOS 13 UIBarButtonItemAppearance API on its navigationItem. The second view controller uses the standard appearance with no customisation.
Launching the app and navigating to the second second view controller works as expected. However going to the first child, then back, then into the second view controller causes the button background image to appear behind the back button. Other bar buttons don't seem to be affected.
Is there a property in UINavigationBarAppearance or similar that I'm supposed to use instead of setNavigationBarHidden?
If not, I can work around it by setting the background image to a clear image in viewWillDisappear, however it seems like a bug.
Here's an example project to demonstrate: https://www.icloud.com/iclouddrive/0fq0GIpyN6IDY0G79oh1wzrqA#NavigationItemAppearance
The root view controller hides the navigation bar using setNavigationBarHidden. The first view controller shows the navigation bar and has background images applied to the navigation bar buttons using the iOS 13 UIBarButtonItemAppearance API on its navigationItem. The second view controller uses the standard appearance with no customisation.
Launching the app and navigating to the second second view controller works as expected. However going to the first child, then back, then into the second view controller causes the button background image to appear behind the back button. Other bar buttons don't seem to be affected.
Is there a property in UINavigationBarAppearance or similar that I'm supposed to use instead of setNavigationBarHidden?
If not, I can work around it by setting the background image to a clear image in viewWillDisappear, however it seems like a bug.
Here's an example project to demonstrate: https://www.icloud.com/iclouddrive/0fq0GIpyN6IDY0G79oh1wzrqA#NavigationItemAppearance