PinLayout icon indicating copy to clipboard operation
PinLayout copied to clipboard

UIButton with image .aspectRation() not work

Open crash481 opened this issue 1 year ago • 1 comments

Hello, I have UIButton setuped with image only And I set it height, and want that width will calculates its aspect ratio with image size

How can I do it, because .aspectRatio() method do not work?

I think it is very popular case, and last years I make calculations based on setted image size and set .aspectRatio(156/235) that is not convenient

crash481 avatar May 12 '23 21:05 crash481