title: IOS, Swift: creating a split screen with 2 views, with animation
body: <p>I'm an absolute IOS newbie studying Swift.</p>
  
  <p>I'm trying to create an app with a calendar UI control on top (already got that working), and a listview on the bottom. </p>
  
  <p>Exactly like the picture on the bottom (and I apologise for the huge pic).</p>
  
  <p>Now, like the calendar app, the screen will only show the calendar control, but if you click a button - the listview will reveal itself on the bottom and the screen will become split.</p>
  
  <p>The only way I can think of doing this is to generate the UITableView in code, assigning the current ViewController as both delegate and datasource, and animating both the views (calendar and listview) to grow/shrink to split the screen.</p>
  
  <p>I don't want to use StackView because that's IOS-9 and up.</p>
  
  <p>Is there a better way to do this?</p>
  
  <p><a href="https://i.stack.imgur.com/2FdCd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2FdCd.jpg" alt="enter image description here"></a></p>