title: content hugging does not work
body: <p>I have a UIView that has a subview 
  I want the yellow view to grow only as the length of the label is
  unfortunately it grows to the maximum width of the screen minus the forced margins i gave it between the white view and the yellow view left and right margins</p>
  
  <p>i've set the content hugging priority to 502 , 501 on the white and yellow view</p>
  
  <p>how do i make this work ?</p>
  
  <p><a href="https://i.stack.imgur.com/wNTB2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wNTB2.png" alt="enter image description here"></a></p>