       if hide {
         hideView(container: v)
         v.layer.position.x = -v.bounds.width / 2
-        rootViewController.view.alpha = 1
+        if isDimEnabled { rootViewController.view.alpha = 1 }
         
       } else {
         showView(container: v)
         v.layer.position.x = width / 2
-        rootViewController.view.alpha = 0.5
+        if isDimEnabled { rootViewController.view.alpha = 0.5 }
       }
       
       layoutSubviews()

                        
                        v.bounds.size.width = width
                        v.layer.position.x = self.view.bounds.width - width / 2
                        self.rootViewController.view.alpha = 0.5
                        
        }) { [weak self, v = v] _ in
          guard let `self` = self else {

      if hide {
        hideView(container: v)
        v.layer.position.x = view.bounds.width + v.bounds.width / 2
        if isDimEnabled { rootViewController.view.alpha = 1 }
        
      } else {
        showView(container: v)
        v.layer.position.x = view.bounds.width - width / 2
        if isDimEnabled { rootViewController.view.alpha = 0.5 }
      }
      
      layoutSubviews()
