         }
         
         if overlay != nil {
-        
             UIView.animate(withDuration: 0.2, animations: {
                 overlay.backgroundColor = overlay.backgroundColor?.withAlphaComponent(0)
-            }, completion: { _ in overlay.removeFromSuperview() })
+            }, completion: { _ in
+                overlay.removeFromSuperview()
+            })
         }
         
         return true

            controller.view.addSubview(self);
            UIView.animate(withDuration: 0.2, animations: {
                self.alpha = 1
                }, completion: { (success) in
            })
            
        }
        
        func createShadow() {

                activityView.stopAnimating()
                UIView.animate(withDuration: animationDuration, animations: {
                    self.icon.alpha = 1
                }, completion: { (value: Bool) in
                    UIView.animate(withDuration: 0.2, animations: {
                        self.alpha = 0
                    })
                    UIView.animate(withDuration: 0.2, animations: { 
                        self.alpha = 0
                    }, completion: { (success) in
                        self.callSelectorAsync(#selector(UIView.removeFromSuperview), delay: animationDuration)
                    })
                    instance = nil
                    hidingInProgress = false
                })
            } else {
                activityView.stopAnimating()
