I have implemented FileProvider Extension.
class MyProviderExtension: NSFileProviderExtension {
override func startProvidingItem(at url: URL, completionHandler: ((_ error: Error?) -> Void)?) {
downloading file using URL and implemented download delegates
// Download Delegate
func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
**// How can I upload the download progress here.**
}
}
}
I am not able to get any UI handler in download delegates to update the progress and update the cell download button after successful download.