We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba6c07 commit e487895Copy full SHA for e487895
Sources/FoundationEssentials/ProgressManager/ProgressManager.swift
@@ -143,11 +143,18 @@ internal import _FoundationCollections
143
/// If `totalCount` is set to `nil`, `self` is indeterminate.
144
/// - Parameter totalCount: Total units of work.
145
public convenience init(totalCount: Int?) {
146
+ #if FOUNDATION_FRAMEWORK
147
self.init(
148
total: totalCount,
149
completed: nil,
150
subprogressBridge: nil
151
)
152
+ #else
153
+ self.init(
154
+ total: totalCount,
155
+ completed: nil,
156
+ )
157
+ #endif
158
}
159
160
/// Returns a `Subprogress` representing a portion of `self` which can be passed to any method that reports progress.
0 commit comments