<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptionGrouper",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptionGrouper"
  },
  "title" : "AVCaptionGrouper"
}
-->

# AVCaptionGrouper

An object that analyzes the temporal overlaps of caption objects to create caption groups for each span of concurrent captions.

```
class AVCaptionGrouper
```

## Topics

### Adding captions

[`add(_:)`](/documentation/AVFoundation/AVCaptionGrouper/add(_:))

Adds a caption to the pending group.

### Generating captions groups

[`flushAddedCaptions(upTo:)`](/documentation/AVFoundation/AVCaptionGrouper/flushAddedCaptions(upTo:))

Creates caption groups for the captions you enqueue up to the time.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)