Contents

summary(of:)

Returns a summary for a custom integer property across the progress subtree.

Declaration

final func summary<P>(of property: KeyPath<ProgressManager.Properties, P.Type>) -> P.Summary where P : ProgressManager.Property, P.Summary == Int, P.Value == Int

Parameters

  • property:

    The type of the integer property to summarize. Must be a property where both the value and summary types are Int.

Return Value

An Int summary value for the specified property.

Discussion

This method aggregates the values of a custom integer property from this progress manager and all its children, returning a consolidated summary value.