---
title: "init(parent:userInfo:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/progress/init(parent:userinfo:)"
---

# init(parent:userInfo:)

Creates a new progress instance.

## Declaration

```swift
init(parent parentProgressOrNil: Progress?, userInfo userInfoOrNil: [ProgressUserInfoKey : Any]? = nil)
```

## Parameters

- `parentProgressOrNil`: The containing doc://com.apple.foundation/documentation/Foundation/Progress object, if any, to notify when reporting progress, or to consult when checking for cancellation. The only valid values are doc://com.apple.foundation/documentation/Foundation/Progress/current() or nil.
- `userInfoOrNil`: The optional user information dictionary for the progress object.

## Discussion

Discussion This is the designated initializer for the Progress class.

## See Also

### Creating Progress Objects

- [discreteProgress(totalUnitCount:)](foundation/progress/discreteprogress(totalunitcount:).md)
- [init(totalUnitCount:)](foundation/progress/init(totalunitcount:).md)
- [init(totalUnitCount:parent:pendingUnitCount:)](foundation/progress/init(totalunitcount:parent:pendingunitcount:).md)
