Using "more than constraint" for UILabel height and calling sizeToFit inside viewDidLayoutSubviews helped
I did not need to call needsUpdateConstraints .
You also need to set the number of lines to 0 to allow an unlimited number of lines, or> 1 if you want a limit.
You must also set the preferredMaxLayoutWidth property, which is automatically set to the width of the views by the interface designer.
Heikog
source share