Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

UIButton with image .aspectRation() not work #269

Open
@crash481

Description

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

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /