I am trying to add a UIViewController
XIB to an existing ViewController
, trying to create this:
I have a simple ViewController
and then I made a UIView
with XIB... and now I am trying to use it in the new ViewController
:
let myVC = XIBViewController(nibName: "XIBViewController.xib", bundle: nil)
self.present(myVC, animated: true, completion: nil)
How can I make it as small as in the image, with the BaseViewController
still visible?