<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/ProgressManager/subprogress(assigningCount:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15ProgressManagerC11subprogress14assigningCountAA11SubprogressVSi_tF"
  },
  "title" : "subprogress(assigningCount:)"
}
-->

# subprogress(assigningCount:)

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

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

## Parameters

`portionOfParentTotal`

The portion of `totalCount` to be delegated to the `Subprogress`.

## Return Value

A `Subprogress` instance.

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)