         let alertAction:JWAlertAction = JWAlertAction(title: actionTitle, style: actionStyle, handler: handler)
         addAction(action: alertAction)
     }
-    
     
     
     //添加action

    
    
    
    public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        self.modalPresentationStyle  =  .custom
        let presentTrasition:JWAlertPresentTransitioning = JWAlertPresentTransitioning()
        presentTrasition.preferredStyle = self.preferredStyle
        return presentTrasition
    }
    
    public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        self.modalPresentationStyle  =  .custom
        let dismissTrasition:JWAlertDismissTransitioning = JWAlertDismissTransitioning()
        dismissTrasition.preferredStyle = self.preferredStyle

        
        
        //如果按钮大于2个 隐藏线
        self.lineView.isHidden = (self.actions.count > 2 || self.actions.count == 1 || preferredStyle != .alert)
        
        //移除按钮
        for btn in self.actiontBtnArray{
            btn.removeFromSuperview()
