 
 //  MARK:- Extension
 fileprivate extension CSPhotoGalleryDetailViewController {
-    func dismiss() {
+    func dismiss(animated: Bool) {
         let parentVC = presentingViewController as? CSPhotoGalleryViewController
         parentVC?.scrollRectToVisible(indexPath: currentIndexPath)
         

//  IBAction
private extension CSPhotoGalleryDetailViewController {
    @IBAction func backBtnAction(_ sender: Any) {
        dismiss()
    }
    
    @IBAction func checkBtnAction(_ sender: Any) {

    
    @IBAction func okBtnAction(_ sender: Any) {
        delegate?.getAssets(assets: PhotoManager.sharedInstance.assets)
        dismiss(animated: false)
    }
}

