Skip to content

Commit e487895

Browse files
committed
more #FOUNDATION_FRAMEWORK check
1 parent 9ba6c07 commit e487895

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/FoundationEssentials/ProgressManager/ProgressManager.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,18 @@ internal import _FoundationCollections
143143
/// If `totalCount` is set to `nil`, `self` is indeterminate.
144144
/// - Parameter totalCount: Total units of work.
145145
public convenience init(totalCount: Int?) {
146+
#if FOUNDATION_FRAMEWORK
146147
self.init(
147148
total: totalCount,
148149
completed: nil,
149150
subprogressBridge: nil
150151
)
152+
#else
153+
self.init(
154+
total: totalCount,
155+
completed: nil,
156+
)
157+
#endif
151158
}
152159

153160
/// Returns a `Subprogress` representing a portion of `self` which can be passed to any method that reports progress.

0 commit comments

Comments
 (0)