Josh D.
Josh D.

Reputation: 161

ImageEdgeInsets Square Aspect Ratio

Is it possible to use ImageEdgeInsets to constrain an image to a square size? I have a UI Image inside of a button and I would like to make it a square size inside the button. Does ImageEdgeInsets offer the ability to maintain an aspect ratio? Thanks!

Upvotes: 0

Views: 131

Answers (1)

NiCk.JaY
NiCk.JaY

Reputation: 141

To maintain the aspect ratio, you should have a look here (it doesn't use ImageEdgeInsets)

Upvotes: -1

Related Questions