When putting multiline label (with linebreak set to Word Wrap) into a stack view, the label immediately loses the linebreak and displays the label text in one line instead.
Why is this happening and how does one preserve multiline label within a stack view?
number of linesto 0
stackviewstill won't grow to
multiLineunless you give a fixed width to
stackview. When we fixed the width of
stackviewThen it break to multiline when that width is reached as shown:
If we don't give a fixed width to
stackview then things get ambiguous. How long will
stackview grow with label(If label value is dynamic).
That's why we give a fixed width to
Hope this can fix your issue.