<!--
{
  "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

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

Adds a caption to the pending group.

### Generating captions groups

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

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

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

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)