                     self.dismissAlertViewWithFlick(velocity)
                 }
                 else {
-                    dismiss()
+                    dismiss(animated: true)
                 }
             }
             else {

            },completion: {[weak self] (finished) in
                self?.removeFromSuperview()
        })
    }
    
    public func cancelButtonIndex() -> Int {

    
    @objc private func clickedOnButton(button:UIButton) {
        self.delegate?.auAlertMessageClickedOn(button: button, index: button.tag, title: button.titleLabel?.text ?? "")
        dismiss(animated: true)
    }
    
    //Gestures and Animation
