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

# SecTransformStringOrAttribute

A type that may be either a string or an attribute reference.

```
typealias SecTransformStringOrAttribute = CFTypeRef
```

## Discussion

Use a value of this type in place of either a <doc://com.apple.documentation/documentation/CoreFoundation/CFString> or a [`SecTransformAttribute`](/documentation/Security/SecTransformAttribute) when referring to transform attributes, such as with the `attribute` parameter in calls to the [`SecTransformCustomSetAttribute(_:_:_:_:)`](/documentation/Security/SecTransformCustomSetAttribute(_:_:_:_:))  and [`SecTransformCustomGetAttribute(_:_:_:)`](/documentation/Security/SecTransformCustomGetAttribute(_:_:_:)) functions. When using a name, see [Transform Attributes](/documentation/Security/transform-attributes) for a list of valid key names.

---

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)