---
title: "subprogress(assigningCount:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/progressmanager/subprogress(assigningcount:)"
---

# subprogress(assigningCount:)

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

## Declaration

```swift
final func subprogress(assigningCount portionOfParentTotal: Int) -> Subprogress
```

## Parameters

- `portionOfParentTotal`: The portion of totalCount to be delegated to the Subprogress.

## Return Value

Return Value A Subprogress instance.

## Discussion

Discussion If the Subprogress is not converted into a ProgressManager (for example, due to an error or early return), then the assigned count is marked as completed in the parent ProgressManager.
