Navigation Controller Back Button not working correctly when tapped

Hi

I am having an issue with the Back Button on my Navigation Controller. It looks as though the hitbox of button is misaligned, as although you can tap the button, it doesn't take you back a page like the back button should do. Below is an image showing the hittable areas. The green outlined areas work correctly, the red outlined area does not.

Here is a video with the issue as well. The video shows me tapping on the back button a bunch of times without the button actually working. The final time I press the button I press it at the far right green area shown in the photo.

https://youtu.be/LuWdYbl0BwM

This is the default back button that comes with the Navigation Controller. I tried with a new UiBarButton that I added but I get the same issue.

Has anyone had an issue like this before?

Thanks!

Accepted Answer

No, never met this problem.

Could you tell:

  • Which version of Xcode ?
  • On simulator or device ?
  • Which OS version in anycase.
  • Have you changed the button programmatically, in anyway ?

Are you sure you have nothing overplayed over "Back" ?

Could debug view hierarchy when running to check for this ?

Eventually, create the smallest possible project to reproduce and attach the full project folder here.

Please file a bug/feedback with a project that demonstrates the issue.

The issue was a "hitbox" checker UIButton extension I had implemented a week ago. It was no longer needed so deleting it fixed the issue. Thanks to Claude for helping me realise.

Navigation Controller Back Button not working correctly when tapped
 
 
Q