title: How to create a layout with two views placed vertically, filling the entry superview and with dynamic height?
body: <p>I want to create a dynamic view with comments and the comment form using AutoLayout, change the height of textview dynamically depending on comment length. Like in Instagram:
  <a href="https://i.stack.imgur.com/8Gj8g.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Gj8g.jpg" alt="enter image description here"></a></p>
  
  <p>There are a tableView and a textView.
  I tried to add the following constraints
  <a href="https://i.stack.imgur.com/zL0sf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zL0sf.png" alt="enter image description here"></a></p>
  
  <p>But it indicates error:<a href="https://i.stack.imgur.com/Wdntu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wdntu.png" alt="enter image description here"></a></p>
  
  <p>When I specify static heights it works, but when I try to add >= &lt;= it always shows an error.</p>