Skip to content

The correct way to use 'sizeThatFits(_:)' #269

@winnisx7

Description

@winnisx7
image image image

I usually use method #1 when I want to calculate the size of a view with a fixed width and maximum height, just like a 'UILabel'.
However, when I tried to do this in flexlayout, the only thing that worked was CGFloat.nan.
Am I doing something wrong? If not, I think I need to modify the logic in the library.

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