marinofaggiana 4 yıl önce
ebeveyn
işleme
37c6feb65f

+ 3 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -215,7 +215,9 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
                 let fileNameMov = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadataMov.ocId, fileNameView: metadataMov.fileNameView)!)
                 
                 NCLivePhoto.generate(from: fileNameImage, videoURL: fileNameMov, progress: { progress in
-                    self.progressView.progress = Float(progress)
+                    DispatchQueue.main.async {
+                        self.progressView.progress = Float(progress)
+                    }
                 }, completion: { livePhoto, resources in
                     self.progressView.progress = 0
                     if resources != nil {