title: Adjusting UILabel width in XIB
body: <p>I am trying to add two <code>UILabels</code> in a container view and adjusting the size of the labels according to the content inside. Everything is working fine except for one thing. I want the width of <code>labels</code> to be adjusted according to the first label having <code>Text A</code> and the number of lines of second label should change if the content in second label is more than first label. Here are the constraints for labels.</p>
  
  <p><img src="https://i.stack.imgur.com/5yrE9.png" alt="Constraints for Text A"></p>
  
  <p><img src="https://i.stack.imgur.com/Axvln.png" alt="Constraints for Text B Text B"></p>
  
  <p><img src="https://i.stack.imgur.com/RhqNm.png" alt="Output view"></p>