|
@@ -1,5 +1,5 @@
|
|
//
|
|
//
|
|
-// NCooo.swift
|
|
|
|
|
|
+// NCOperationSaveLivePhoto.swift
|
|
// Nextcloud
|
|
// Nextcloud
|
|
//
|
|
//
|
|
// Created by Marino Faggiana on 19/10/23.
|
|
// Created by Marino Faggiana on 19/10/23.
|
|
@@ -21,7 +21,6 @@
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
//
|
|
//
|
|
|
|
|
|
-
|
|
|
|
import UIKit
|
|
import UIKit
|
|
import Queuer
|
|
import Queuer
|
|
import JGProgressHUD
|
|
import JGProgressHUD
|
|
@@ -97,8 +96,8 @@ class NCOperationSaveLivePhoto: ConcurrentOperation {
|
|
NCLivePhoto.generate(from: fileNameImage, videoURL: fileNameMov, progress: { progress in
|
|
NCLivePhoto.generate(from: fileNameImage, videoURL: fileNameMov, progress: { progress in
|
|
self.hud.progress = Float(progress)
|
|
self.hud.progress = Float(progress)
|
|
}, completion: { _, resources in
|
|
}, completion: { _, resources in
|
|
- if resources != nil {
|
|
|
|
- NCLivePhoto.saveToLibrary(resources!) { result in
|
|
|
|
|
|
+ if let resources {
|
|
|
|
+ NCLivePhoto.saveToLibrary(resources) { result in
|
|
DispatchQueue.main.async {
|
|
DispatchQueue.main.async {
|
|
if !result {
|
|
if !result {
|
|
self.hud.indicatorView = JGProgressHUDErrorIndicatorView()
|
|
self.hud.indicatorView = JGProgressHUDErrorIndicatorView()
|