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.<
Add UIStackView properties,
UIStackView
stackView.alignment = .fill stackView.distribution = .fillProportionally stackView.spacing = 8.0 stackView.axis = .horizontal
Instead of adding label inside UIView which is not required.If you are using inside UITableViewCell please, reload data on rotation.
UIView
UITableViewCell