I am facing a strange issue in my App.
I initialised a UIBarButton, added the action, custom Image to it and then added it as rightBarButtonItem of navigationController.
The click action is working as expected on iOS 12.4.1 but fails on iOS 13.3.1 . My code is shown below.
let syncButton = UIBarButton()
syncButton.action = #selector(someMethod) // here someMethod is the method I want to execute on the click
self.navigationItem.rightBarButton = syncButton