---
title: "localIdentity(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/quic/tls-swift.struct/localidentity(_:)"
---

# localIdentity(_:)

Set the local identity TLS uses during the QUIC handshake.

## Declaration

```swift
func localIdentity(_ identity: sec_identity_t) -> QUIC
```

## Parameters

- `identity`: The local identity to be used during the QUIC handshake.
