Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIButton with image .aspectRation() not work #269

Open
crash481 opened this issue May 12, 2023 · 1 comment
Open

UIButton with image .aspectRation() not work #269

crash481 opened this issue May 12, 2023 · 1 comment

Comments

@crash481
Copy link

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
Copy link
Author

update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant