title: How to load UIViewController XIB inside another ViewController?
body: <p>I am trying to add a <code>UIViewController</code> <strong>XIB</strong> to an existing <code>ViewController</code>, trying to create this:</p>
  
  <p><a href="https://i.stack.imgur.com/aYl9E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aYl9E.png" alt="enter image description here"></a></p>
  
  <p>I have a simple <code>ViewController</code> and then I made a <code>UIView</code> with <strong>XIB</strong>... and now I am trying to use it in the new <code>ViewController</code>:</p>
  
  <pre><code>    let myVC = XIBViewController(nibName: "XIBViewController.xib", bundle: nil)
      self.present(myVC, animated: true, completion: nil)
  </code></pre>
  
  <p>How can I make it as small as in the image, with the <code>BaseViewController</code> still visible?</p>