title: UIView Resize for content
body: <p>Couldn't find any answer for this, or am I missing something...</p>
  
  <p>In iOS with autolayout on storyboard. If I have a UIView with some controls in it, depending on what the user clicks, the subviews are resizing. Can I somehow have the superview resize to the content?</p>
  
  <p>In my app I have a view, but if a button is clicked subview is hidden I want the superviews height to decrease to exclude the hidden view. I can hook up the height constraint and handle it programatically, but it would be nice to handle it automatically....</p>
  
  <p>Is there a way?</p>