79203352

Date: 2024-11-19 12:13:33
Score: 1
Natty:
Report link

To fix this, I added this code to UILabel's parent view:

override func layoutSubviews() {
   super.layoutSubviews()

   // fix for preventing truncating in UIStackView
   label?.preferredMaxLayoutWidth = bounds.width
}

It works! Hope it will save you some time

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Seify