     }
     
     //
-    // MARK: View life cycle
+    // MARK: View controller life cycle
     
     open override func viewDidLoad() {
         super.viewDidLoad()

                vc.view.addGestureRecognizer(self.createPanGestureRecognizer())
                
                var menuFrame = vc.view.frame
                menuFrame.size.width = self.view.frame.size.width - SideViewControllerTrailingIndent
                menuFrame.origin.x = menuSide == .left ? -menuFrame.size.width : view.frame.maxX + menuFrame.size.width
                vc.view.frame = menuFrame
            }

            if menuSide == .left {
                frame.origin.x = newValue ? SideViewControllerOpenedLeadingOffset : -frame.size.width
            } else {
                frame.origin.x = newValue ? view.frame.maxX - frame.width - SideViewControllerOpenedLeadingOffset : self.view.frame.width
            }
            
            let animations = { () -> () in
