<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureAncillaryDataEncoder/setUserInstanceUID(_:forUserUDAMVersion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureAncillaryDataEncoder(im)setUserInstanceUID:forUserUDAMVersion:"
  },
  "title" : "setUserInstanceUID(_:forUserUDAMVersion:)"
}
-->

# setUserInstanceUID(_:forUserUDAMVersion:)

Set the UID and Version number for the user data.

```
func setUserInstanceUID(_ uuid: UUID, forUserUDAMVersion version: NSNumber)
```

## Parameters

`uuid`

The UUID for the SMPTE RDD 18 ancillary data instance

`version`

The SMPTE RDD 18 User Defined Acquisition Metadata (UDAM) Set Version

## Discussion

Allows the user to set the instance and version of the ancillary data.

---

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)