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.
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.