title: Label size is not changing
body: <p>I am trying to make a Chat app. I have a <code>tableView</code> and prototype cell in which I have <code>UILabel</code>. But I am stuck with label size(HxW). Please take a look in the image below:</p>
  
  <p><a href="https://i.stack.imgur.com/hXJFW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hXJFW.jpg" alt="enter image description here"></a></p>
  
  <p>The first label is taking extra width and height is less. I want that label should take width according to its content but till the button.</p>
  
  <p>These are the contraints:</p>
  
  <p><a href="https://i.stack.imgur.com/An8Q4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/An8Q4.jpg" alt="enter image description here"></a></p>
  
  <p>For the height I am using:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat
  {
      return  UITableViewAutomaticDimension
  
  }
  </code></pre>