Skip to content

Instance Method

assign(count:to:)

iOS 26.0+ iPadOS 26.0+ Mac Catalyst 26.0+ macOS 26.0+ tvOS 26.0+ visionOS 26.0+ watchOS 26.0+
Adds a ProgressReporter as a child, with its progress representing a portion of self’s progress.
func assign(count: Int, to reporter: ProgressReporter)

Parameters

count

Units, which is a portion of totalCountdelegated to an instance of Subprogress.

reporter

A ProgressReporter instance.

Discussion

If a cycle is detected, this will cause a crash at runtime.