Search code examples
iosswiftautolayoutstackview

How can I set the horizontal stackView according to the width of the first label


How can I align the stackview according to the content of the first label on storyboard ?

enter image description here enter image description here


Solution

  • Select the left label and then from size inspector change horizontal Content Hugging Priority = 1000

    enter image description here