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

# sec_identity_copy_ref(_:)

## Declaration

```swift
func sec_identity_copy_ref(_ identity: sec_identity_t) -> Unmanaged<SecIdentity>?
```

## Parameters

- `identity`: A sec_identity_t instance.

## Return Value

Return Value The underlying SecIdentityRef instance.

## Discussion

Discussion Copy a retained reference to the underlying SecIdentityRef instance.
