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

Add modifier for ContentHuggingPriority #159

Closed
0xLeif opened this issue Jul 1, 2020 · 0 comments
Closed

Add modifier for ContentHuggingPriority #159

0xLeif opened this issue Jul 1, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@0xLeif
Copy link
Member

0xLeif commented Jul 1, 2020

Currenty you must use the configure method

Label("Hello World").configure {
    $0.setContentHuggingPriority(.defaultHigh, for: .vertical)
}

Expected

Label("Hello World")
    .setVertical(huggingPriority: .defaultHigh)

Also Expected

Label("Hello World")
    .setVertical(huggingPriority: .defaultHigh)
    .setHorizontal(huggingPriority: . defaultLow)
    .setVertical(compressionResistancePriority: .defaultLow)
    .setHorizontal(compressionResistancePriority: .defaultHigh)
@0xLeif 0xLeif self-assigned this Jul 1, 2020
@0xLeif 0xLeif added the enhancement New feature or request label Jul 1, 2020
@0xLeif 0xLeif closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant