     
     @objc open override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
         if self.inline {
-            UIApplication.shared.keyWindow!.rootViewController!.dismiss(animated: true, completion: nil)
-        } else {
-            super.dismiss(animated: true, completion: nil)
+            UIApplication.shared.keyWindow!.rootViewController!.dismiss(animated: true, completion: completion)
+        } else {
+            super.dismiss(animated: true, completion: completion)
         }
     }
     

        rootViewController.navigationItem.hidesBackButton = true
    }
    
    private override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
    }
    

        self.groupDataManager = groupDataManager
    }
    
    public override init(rootViewController: UIViewController) {
        super.init(rootViewController: rootViewController)
        
        self.preferredContentSize = CGSize(width: 680, height: 600)
