1

How do I reduce the image size so that UIButton is not pressed when the user click on the extra space of the image on the right side and the button is not using auto constraint

barbutton.image = UIImage(named: "backbutton")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)

I am trying to decrease my hit area but image insets don't help as the hit area remains the same and the UIButton image reduces which does not help

The bar button:

enter image description here

Harikrishnan
  • 7,765
  • 13
  • 62
  • 113
Nick
  • 37
  • 10

0 Answers0