<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardSlotManager/createNFCSlot(message:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardSlotManager(im)createNFCSlotWithMessage:completion:"
  },
  "title" : "createNFCSlot(message:completion:)"
}
-->

# createNFCSlot(message:completion:)

Creates an NFC smart card slot using the device’s hardware and presents a system UI.

```
func createNFCSlot(message: String?, completion: @escaping @Sendable (TKSmartCardSlotNFCSession?, (any Error)?) -> Void)
```

## Parameters

`message`

Message shown in the system-presented UI

`completion`

Completion handler which returns the NFC session of the created slot or an error on failure.
If an NFC slot already exists and current caller is not the initial creator `TKErrorCodeObjectNotFound` error is returned.

## Discussion\discussion To finish the NFC session and dismiss the system-presented UI use `TKSmartCardSlotNFCSession.endSession`.

---

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)