import UIKit

class MainViewController: UIViewController {
  override init() {
    super.init(nibName: nil, bundle: nil);

    let playlistViewController = PlaylistViewController()
    addChildViewController(playlistViewController)
    view!.addSubview(playlistViewController.view)
  }
  
  required init(coder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }
}
import UIKit

class MainViewController: UIViewController {
  override init() {
    super.init(nibName: nil, bundle: nil);
  }
  
  required init(coder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }
}
--- 
+++ 
@@ -3,6 +3,10 @@
 class MainViewController: UIViewController {
   override init() {
     super.init(nibName: nil, bundle: nil);
+
+    let playlistViewController = PlaylistViewController()
+    addChildViewController(playlistViewController)
+    view!.addSubview(playlistViewController.view)
   }
   
   required init(coder: NSCoder) {
Add PlaylistView inside our new main controller
