title: Loading a ViewController inside a Container View
body: <p>I have a containerView with full screen inside a VC. If i add a child to the containerView manually from a Storyboard doing a embed segue looks fine:
  <img src="https://i.stack.imgur.com/EpRQk.jpg" alt="enter image description here"></p>
  
  <p>But if I embed the VC by code:</p>
  
  <pre><code>class BannerContainerVC: UIViewController {
  
      @IBOutlet weak var container: UIView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          let vc = storyboard?.instantiateViewControllerWithIdentifier("test") as UIViewController
          self.container.addSubview(vc.view)
      }
  }
  </code></pre>
  
  <p>I get super strange results:  </p>
  
  <p><img src="https://i.stack.imgur.com/76hj5.jpg" alt="enter image description here"></p>