I set inset constraints for 2 labels, and width is set to fixed value. number of lines is set to 0.

What I expect is the UILabels are resized to fit, and the parent view is also auto resized. But the output is the container remains the same size but the sub uilabels are either too high or too short. What's the problem? Thanks.

![enter image description here](https://i.stack.imgur.com/UgCrI.png)

![enter image description here](https://i.stack.imgur.com/Qflom.png)

Here is the constraints

![enter image description here](https://i.stack.imgur.com/uvMJu.png)