Skip to content

Commit a195197

Browse files
committed
always set totalCount before completedCount
1 parent abedca5 commit a195197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProgressManager/ProgressManager+Interop.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ internal final class ProgressReporterBridge: Sendable {
164164

165165
switch observerState {
166166
case .fractionUpdated(let totalCount, let completedCount):
167-
self.progressBridge.completedUnitCount = Int64(completedCount)
168167
self.progressBridge.totalUnitCount = Int64(totalCount)
168+
self.progressBridge.completedUnitCount = Int64(completedCount)
169169
}
170170
}
171171
}

0 commit comments

Comments
 (0)