         
     }
     
-    override func viewWillLayoutSubviews() {
+    override public func viewWillLayoutSubviews() {
         super.viewWillLayoutSubviews()
         
         

    
    
    //加载
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor.clear

    
    
    
    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
