<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecReturnRef",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecReturnRef"
  },
  "title" : "kSecReturnRef"
}
-->

# kSecReturnRef

A key whose value is a Boolean indicating whether or not to return a reference to an item.

```
let kSecReturnRef: CFString
```

## Discussion

The corresponding value is of type <doc://com.apple.documentation/documentation/CoreFoundation/CFBoolean>. A value of <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanTrue> indicates that a reference should be returned. Depending on the item class requested, the returned references may be of type [`SecKeychainItem`](/documentation/Security/SecKeychainItem), [`SecKey`](/documentation/Security/SecKey), [`SecCertificate`](/documentation/Security/SecCertificate), [`SecIdentity`](/documentation/Security/SecIdentity), or <doc://com.apple.documentation/documentation/CoreFoundation/CFData>.

---

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)