                 else {
                     self.contentView?.insertSubview((self.leftViewController?.view)!, belowSubview: (self.mainViewController?.view)!)
                 }
-                addChildViewController(self.leftViewController!)
-                self.leftViewController?.didMove(toParentViewController: self)
+                addChild(self.leftViewController!)
+                self.leftViewController?.didMove(toParent: self)
             }
             var leftFrame: CGRect = self.leftViewController!.view.frame
             var mainFrame: CGRect = self.mainViewController!.view.frame

                tableView = self.tableViewInView((sideViewController?.view)!)
            }
            if style != PBRevealBlurEffectStyle.none.rawValue {
                let blurEffect = UIBlurEffect(style: UIBlurEffectStyle(rawValue: style)!)
                let sideEffectView = UIVisualEffectView(effect: blurEffect)
                sideEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
                #if os(iOS)

                else {
                    self.contentView?.insertSubview((rightViewController?.view)!, belowSubview: (mainViewController?.view)!)
                }
                addChild(self.rightViewController!)
                self.rightViewController?.didMove(toParent: self)
            }
            var rightFrame: CGRect = self.rightViewController!.view.frame
            var mainFrame: CGRect = self.mainViewController!.view.frame
