diff --git a/Example/Example/MainViewController.swift b/Example/Example/MainViewController.swift index a0f582c..e1d3bd6 100644 --- a/Example/Example/MainViewController.swift +++ b/Example/Example/MainViewController.swift @@ -123,7 +123,9 @@ class MainViewController: UIViewController { do { return try await self.upload(fileUrl: videoUrl, progress: { progress in print("Progress: \(progress.fractionCompleted)") - self.progressView.progress = Float(progress.fractionCompleted) + DispatchQueue.main.async { + self.progressView.progress = Float(progress.fractionCompleted) + } }) } catch { print("Upload error: \(error)")