title: How to resize superview to fit all subviews with autolayout?
body: <p>My understanding of autolayout is that it takes the size of superview and base on constrains and intrinsic sizes it calculates positions of subviews.</p>
  
  <p>Is there a way to reverse this process? I want to resize superview on the base of constrains and intrinsic sizes. What is the simplest way of achieving this?</p>
  
  <p>I have view designed in Xcode which I use as a header for <code>UITableView</code>. This view includes a label and a button. Size of the label differs depending on data. Depending on constrains the label successfully pushes the button down or if there is a constrain between the button and bottom of superview the label is compressed.</p>
  
  <p>I have found a few similar questions but they don’t have good and easy answers. </p>