Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.53k stars 1.1k forks source link

Add workaround to simulate the content of labels contained in a stack view. #380

Closed Juanpe closed 3 years ago

Juanpe commented 3 years ago

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.