How can I align the stackview according to the content of the first label on storyboard ?
Asked
Active
Viewed 492 times
2 Answers
2
Make sure the horizontal Content Hugging Priority of your left label has a higher value than the one on the right. The exact values don't matter, but the left one must be at least 1 higher than the one on the right. For example, use "Default High (750)" on the left and "Default Low (250)" on the right.

DarkDust
- 90,870
- 19
- 190
- 224
1
Select the left label and then from size inspector change horizontal Content Hugging Priority = 1000

Shehata Gamal
- 98,760
- 8
- 65
- 87