0

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!

Josh D.
  • 151
  • 1
  • 11

1 Answers1

-1

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

Community
  • 1
  • 1
NiCk.JaY
  • 141
  • 1
  • 8