<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialSession/State-swift.enum/cardEmulation(credential:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SecureElementCredential"
    ],
    "preciseIdentifier" : "s:23SecureElementCredential0C7SessionC5StateO13cardEmulationyAeC0C0V_tcAEmF"
  },
  "title" : "CredentialSession.State.cardEmulation(credential:)"
}
-->

# CredentialSession.State.cardEmulation(credential:)

The state for performing card emulation with a given credential.

```
case cardEmulation(credential: CredentialSession.Credential)
```

## Parameters

`credential`

The credential currently in use by the session.

## Discussion

In the card emulation state, the session makes the selected credential available to NFC contactless readers.

---

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)