             if self.scaleBackgroundImageView {
                 self.backgroundImageView!.transform = CGAffineTransform.identity
             }
-        }) { (Bool) in
+        }) { (_) in
             self.rightMenuViewController?.endAppearanceTransition()
 
             if !self.rightMenuVisible {


    public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
        if self.interactivePopGestureRecognizerEnabled && self.contentViewController! is UINavigationController {
            let navigationController: UINavigationController = (self.contentViewController as! UINavigationController)
            if navigationController.viewControllers.count > 1 && navigationController.interactivePopGestureRecognizer!.isEnabled {
                return false
            }


            UIView.animate(withDuration: self.animationDuration, animations: {
                contentViewController.view.alpha = 1
                }, completion: { (_) in
                    self.hideViewController(self.contentViewController!)
                    contentViewController.didMove(toParentViewController: self)
                    self.contentViewController = contentViewController
