     /// 自定义弹出和消失的转场动画
     func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
         
+        isPresent = true
+        
+        return self
+    }
+    
+    /// 自定义消失的转场动画
+    func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
+        
+        
+        isPresent = false
         return self
     }
     

    // .from 消失的动画
    func animateTransition(using transitionContext: UIViewControllerContextTransitioning){
        
        let presentView = transitionContext.view(forKey: .to)
        
        
    }
    
    

    
    // MARK: - 懒加载属性
    fileprivate lazy var titleBtn : TitleButton = TitleButton()
    
    // 用来判断是是不是弹出动画
    fileprivate var isPresent : Bool = false
    
    

