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

# SecTransformCustomGetAttribute(_:_:_:)

Gets an attribute value from a custom transform.

```
func SecTransformCustomGetAttribute(_ ref: SecTransformImplementationRef, _ attribute: SecTransformStringOrAttribute, _ type: SecTransformMetaAttributeType) -> CFTypeRef?
```

## Parameters

`ref`

A [`SecTransformImplementationRef`](/documentation/Security/SecTransformImplementationRef) that is bound to an instance of a custom transform.

`attribute`

The name or the attribute handle of the attribute whose value is to be retrieved. When using a name, see [Transform Attributes](/documentation/Security/transform-attributes) for a list of valid key names.

`type`

The type of data to be retrieved for the attribute. See the discussion on [`SecTransformMetaAttributeType`](/documentation/Security/SecTransformMetaAttributeType) for details.

## Return Value

The value of the attribute.

## Discussion

---

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)