Skip to content

How to set the width of a button element with UIEdgeInsets? #237

@kirill404

Description

@kirill404

button.titleEdgeInsets = UIEdgeInsets(top: 0, left: 18, bottom: 0, right: 18)
button.titleEdgeInsets.pin.top(10).height(36).hCenter().sizeToFit(.height)

Not work!
How to make it count UIEdgeInsets?
Thank you.

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