---
title: "assign(count:to:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/progressmanager/assign(count:to:)-98a77"
---

# assign(count:to:)

Adds a ProgressReporter as a child, with its progress representing a portion of self’s progress.

## Declaration

```swift
final 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

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