title: TableView and Collection view Layout in same view controller
body: <p>I have two <code>UIViewControllers</code>, When I click on a button of first <code>UIViewController</code> then tableView(Of Second UIViewController)  should open, and when I click on another button of First <code>UIViewController</code> then Collection view(Of Second UIViewController) should open.</p>
  
  <p>I mean When Table View will open Collection view will be hidden and Vice versa, both I want in a single View controller.<br>
  In image you can see that TableView open with images, but when I will click on first cell the collection view should open in same layout.I mean it has to show like this.</p>
  
  <p>I am new in UI.
  So How can I implement the UI.</p>
  
  <p>Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/ccOY7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ccOY7.png" alt="enter image description here"></a></p>