 
 class FilesListViewController: BaseViewController {
     var data = FilesListViewData()
+    var documentController: UIDocumentInteractionController?
 
     @IBOutlet weak var tableView: UITableView!
 

        controller.activityItems = [file.name, videoURL]
        present(controller, animated: true, completion: nil)
    }
}

// MARK: ViewController

            openVideo(fromFile: file)
            return
        }

        if file.isDocument {
            openDocument(fromFile: file)
            return
        }
    }
}

// MARK: UIDocumentInteractionDelegate

extension FilesListViewController: UIDocumentInteractionControllerDelegate {
    func documentInteractionControllerViewControllerForPreview(_ controller: UIDocumentInteractionController) -> UIViewController {
        return self
    }
}
