I've got a view with a UIButton
in it. I've got some animations that, among others, scale the button down.
The problem is that the button is actually scaling well following the constraints when it only has text, but when I set an image either as its image
or its backgroundImage
, the button is not scaling anymore.
I've tried playing with contentMode
s of both the UIButton
and its inner imageView
with no results (I've tried, literally, all the possible answers of this, this, this and this stackoverflow questions).
Any hint? Thank you all in advance
UPDATE
I've noticed that the issue is with UIImageView
s, not UIButton
s (the problem with the button was due to the imageView inside it).