<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVMetadataObject/groupID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMetadataObject(py)groupID"
  },
  "title" : "groupID"
}
-->

# groupID

An identifier associated with a metadata object used to group it with other metadata objects belonging to a common parent.

```
var groupID: Int { get }
```

## Discussion

When presented with a collection of [`AVMetadataObject`](/documentation/AVFoundation/AVMetadataObject) instances of different types, you may use the objects’ [`groupID`](/documentation/AVFoundation/AVMetadataObject/groupID) to combine them into groups. For example, a human body and face belonging to the same person have the same [`groupID`](/documentation/AVFoundation/AVMetadataObject/groupID).  If an object’s [`groupID`](/documentation/AVFoundation/AVMetadataObject/groupID) property is set to -1, it is invalid. When set to a value of >=0, it is unique across all object groups.

---

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)