<!--
{
  "availability" : [
    "macOS: 10.7.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTransformRegister(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecTransformRegister"
  },
  "title" : "SecTransformRegister(_:_:_:)"
}
-->

# SecTransformRegister(_:_:_:)

Registers a custom transform.

```
func SecTransformRegister(_ uniqueName: CFString, _ createTransformFunction: SecTransformCreateFP, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool
```

## Parameters

`uniqueName`

A unique name for this custom transform. It is recommended that a reverse DNS name be used for the name of your custom transform

`createTransformFunction`

A [`SecTransformCreateFP`](/documentation/Security/SecTransformCreateFP) function pointer. The function must return a [`SecTransformInstanceBlock`](/documentation/Security/SecTransformInstanceBlock) block. Call block_copy on this block before returning it. Failure to do so results in undefined behavior.

`error`

A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object’s memory. Pass `NULL` to ignore the error.

## Return Value

A Boolean that is set to <doc://com.apple.documentation/documentation/Swift/true> if the custom transform was registered and <doc://com.apple.documentation/documentation/Swift/false> otherwise

---

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)