<!--
{
  "availability" : [
    "macOS: 10.7.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTransformAttributeActionBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@T@SecTransformAttributeActionBlock"
  },
  "title" : "SecTransformAttributeActionBlock"
}
-->

# SecTransformAttributeActionBlock

A block used to override the default attribute handling for when an attribute is set.

```
typealias SecTransformAttributeActionBlock = (SecTransformAttribute, CFTypeRef) -> Unmanaged<CFTypeRef>?
```

## Parameters

`attribute`

The attribute whose default is being overridden or NULL if this is a generic notification override

`value`

Proposed new value for the attribute.

## Return Value

The new value of the attribute if successful or a <doc://com.apple.documentation/documentation/CoreFoundation/CFError> object on failure. If a transform needs to have a <doc://com.apple.documentation/documentation/CoreFoundation/CFError> as the value of an attribute, then place the object in a container, such as a <doc://com.apple.documentation/documentation/CoreFoundation/CFArray> or <doc://com.apple.documentation/documentation/CoreFoundation/CFDictionary> object.

## 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)