Skip to content

UIButton with image .aspectRation() not work #269

@crash481

Description

@crash481

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions