1

I have a navigation bar embedded Search Controller. When Search Controller is dismissed, navigation back bar button item is reverting to default color(blue) only in iOS13.

Is there any way to fix this problem?

Here: Gif

Kaan Ozdemir
  • 165
  • 2
  • 9
  • No, never tried. I've test it with iOS 13.1. But I should fix this issue for the iOS13.1 and iOS13.0 users. – Kaan Ozdemir Oct 31 '19 at 14:47
  • OK but the problem is you do not explain how the back bar button item got its tint color. There is a new iOS 13 way to do that. Are you using the new way, or are you just setting the tint color of the navigation bar? That isn't going to work. – matt Oct 31 '19 at 14:52

1 Answers1

0

I faced this problem too.

I have placed a custom button instead of system back button. It worked for me.

You should put it before push to viewController. If you have two or more viewControllers, you should put it at first.

    let backItem = UIBarButtonItem()
    backItem.title = "Back" 
    backItem.tintColor = .red
    navigationItem.backBarButtonItem = backItem
Burak Dizlek
  • 4,805
  • 2
  • 23
  • 19