We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3a76b5 commit 5ecd68aCopy full SHA for 5ecd68a
Sources/Upscaling/UpscalingExportSession.swift
@@ -24,6 +24,12 @@ public class UpscalingExportSession {
24
}
25
self.outputSize = outputSize
26
self.creator = creator
27
+ progress = Progress(parent: nil, userInfo: [
28
+ .fileURLKey: outputURL
29
+ ])
30
+ progress.fileURL = outputURL
31
+ progress.isCancellable = false
32
+ progress.publish()
33
34
35
// MARK: Public
@@ -36,7 +42,7 @@ public class UpscalingExportSession {
36
42
public let outputSize: CGSize
37
43
public let creator: String?
38
44
39
- public let progress = Progress()
45
+ public let progress: Progress
40
46
41
47
public func export() async throws {
48
guard !FileManager.default.fileExists(atPath: outputURL.path(percentEncoded: false)) else {
0 commit comments