iosuinavigationbaruinavigationbarappearance

How can I set the color of a custom back arrow image with UINavigationBarAppearance?


I have an iOS app that uses a custom back chevron for the back button in navigation bars with custom background colors and shadows and such. I'd like to set the color of that back indicator image to something besides the default blue. How do I do that with the new UINavigationBarAppearance APIs?

I have tried:


Solution

  • The tintColor works for me. The attached screencast shows (using slow animations) that having set the tint color to black, it stays black, both pushing and popping:

    enter image description here