Contents

init(parent:userInfo:)

Creates a new progress instance.

Declaration

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

Parameters

  • parentProgressOrNil:

    The containing Progress object, if any, to notify when reporting progress, or to consult when checking for cancellation.

    The only valid values are Current() or nil.

  • userInfoOrNil:

    The optional user information dictionary for the progress object.

Discussion

This is the designated initializer for the Progress class.

See Also

Creating Progress Objects