---
title: "SecTransformGetAttribute(_:_:)"
framework: security
role: symbol
role_heading: Function
path: "security/sectransformgetattribute(_:_:)"
---

# SecTransformGetAttribute(_:_:)

Gets the current value of a transform attribute.

## Declaration

```swift
func SecTransformGetAttribute(_ transformRef: SecTransform, _ key: CFString) -> CFTypeRef?
```

## Parameters

- `transformRef`: The transform whose attribute value will be retrieved.
- `key`: The name of the attribute to retrieve. See doc://com.apple.security/documentation/Security/transform-attributes for a list of valid keys.

## Return Value

Return Value The value of an attribute. If this attribute is being set as the output of another transform and SecTransformExecute(_:_:) has not been called on the transform or if the attribute does not exists then NULL will be returned.

## Discussion

Discussion This may be called after SecTransformExecute(_:_:).
