---
title: "SecTransformCustomGetAttribute(_:_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sectransformcustomgetattribute(_:_:_:)"
---

# SecTransformCustomGetAttribute(_:_:_:)

Gets an attribute value from a custom transform.

## Declaration

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

## Parameters

- `ref`: A doc://com.apple.security/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 doc://com.apple.security/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 doc://com.apple.security/documentation/Security/SecTransformMetaAttributeType for details.

## Return Value

Return Value The value of the attribute.
