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 workaround to simulate the content of labels contained in a stack view. #380

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

Juanpe
Copy link
Owner

@Juanpe Juanpe commented Mar 29, 2021

Summary

When a label is contained in a UIStackView and the content is nil, the bounds is zero and the stack view content size is zero as well. The idea is to set a placeholder text to simulate content to allow the library to calculate effectively the desired size of the label.

@Juanpe Juanpe self-assigned this Mar 29, 2021
@Juanpe Juanpe merged commit 4143a60 into main Mar 29, 2021
@Juanpe Juanpe changed the title feat: add workaround to simulate the content of labels contained in a stack view. Add workaround to simulate the content of labels contained in a stack view. Mar 29, 2021
@Juanpe Juanpe deleted the bug/simulate_stackview_content_size branch June 11, 2021 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant