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

                    }
                    
                    v.layer.position.x = self.view.bounds.width + v.bounds.width / 2
                    if isDimEnabled { self.rootViewController.view.alpha = 1 }
                    
    }) { [weak self, v = v] _ in
      guard let `self` = self else {

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