Update class NerdTabViewController
// var box = NSBox()
var box = NSView()
Update selectTabAtIndex(_
let viewController = childViewControllers[index]
// box.contentView = viewController.view
let childView = viewController.view
box.subviews = []
box.addSubview(childView)
viewController.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate(NSLayoutConstraint.constraints(withVisualFormat: "H:|[CV]|", options: [], metrics: nil, views: ["CV":childView]))
NSLayoutConstraint.activate(NSLayoutConstraint.constraints(withVisualFormat: "V:|[CV]|", options: [], metrics: nil, views: ["CV":childView]))
Update reset()
// box.borderType = .noBorder
// box.boxType = .custom