title: Change UIView height and subviews y position [Swift]
body: <p>I'm using auto layout to center my primary UIView horizontally and vertically. What I'm trying to do is animate the height from 363 to 182 while the subview which has a height of 182 pushes from its current offset to a y offset of 0. </p>
  
  <p>In slightly less confusing terminology:
  The goal is to have the subview towards the bottom, slide over the content at the top of the parent view while the parent view changes its height to the height of the subview. </p>
  
  <p>Changing one before the other seems to break it either way. My last resort option is to have a view under the subview, that matches the background color of the controller to hide the fact that the parent view doesn't resize, but I'm using a corner radius so it would be kinda ugly that way. </p>
  
  <p>I somewhat new to this whole auto layout thing so I'm hoping there's a better solution. </p>
  
  <p>Any help is greatly appreciated. </p>
  
  <p>Thanks :)</p>