I use a small icon as an image of a UIbutton. I want to increase the hit area of the icon so the IBaction would be called without the need to click exactly at the small icon. I found similar question here and the solution was to adjust the inset, but this doesn't seem to work for me, the hit area is still the same.
smallButton.imageEdgeInsets = UIEdgeInsets(top: -100.0, left: -100.0,bottom: -100.0, right: -100.0)
smallButton.contentEdgeInsets = UIEdgeInsets(top: -100.0, left: -100.0, bottom: -100.0, right: -100.0)