---
title: "chronologicalMerge(with:_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmetrics/chronologicalmerge(with:_:)"
---

# chronologicalMerge(with:_:)

## Declaration

```swift
func chronologicalMerge<OtherSecondMetric, each MetricEventPack>(with secondMetric: AVMetrics<OtherSecondMetric>, _ metrics: repeat AVMetrics<each MetricEventPack>) -> AVMergedMetrics<MetricEvent, OtherSecondMetric, repeat each MetricEventPack> where OtherSecondMetric : AVMetricEvent, repeat each MetricEventPack : AVMetricEvent
```
