---
title: "merge(_:_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/progressmanager/property/merge(_:_:)"
---

# merge(_:_:)

Merges two summary values into a single combined summary.

## Declaration

```swift
static func merge(_ summary1: Self.Summary, _ summary2: Self.Summary) -> Self.Summary
```

## Parameters

- `summary1`: The first summary to merge.
- `summary2`: The second summary to merge.

## Return Value

Return Value A new summary that represents the combination of both input summaries.

## Discussion

Discussion This method is called to combine summary values from different branches of the progress manager hierarchy into a unified summary.
