Instance Property

fractionCompleted

The fraction of the overall work completed by this progress object, including work done by any children it may have.

Declaration

var fractionCompleted: Double { get }

Discussion

If the receiver object does not have any children, fractionCompleted is generally the result of dividing completedUnitCount by totalUnitCount. Setting both totalUnitCount and completedUnitCount properties to zero indicates that there is no progress to track; in this case, the isIndeterminate property returns false and the fractionCompleted property returns 0.0.

If the receiver does have children, fractionCompleted reflects progress made in child objects in addition to its own completedUnitCount. When children finish, the completedUnitCount of the parent is updated.