<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardSlot",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardSlot"
  },
  "title" : "TKSmartCardSlot"
}
-->

# TKSmartCardSlot

A single smart card reader slot in the system.

```
class TKSmartCardSlot
```

## Overview

Use the [`TKSmartCardSlotManager`](/documentation/CryptoTokenKit/TKSmartCardSlotManager) class to manage all the smart card reader slots available to the system. You can retrieve the names of available smart card reader slots for a system using the [`slotNames`](/documentation/CryptoTokenKit/TKSmartCardSlotManager/slotNames) property of a manager object, and access instances of [`TKSmartCardSlot`](/documentation/CryptoTokenKit/TKSmartCardSlot) using the  [`getSlot(withName:reply:)`](/documentation/CryptoTokenKit/TKSmartCardSlotManager/getSlot(withName:reply:)) method.

## Topics

### Instantiating Smart Cards

[`makeSmartCard()`](/documentation/CryptoTokenKit/TKSmartCardSlot/makeSmartCard())

Creates a new [`TKSmartCard`](/documentation/CryptoTokenKit/TKSmartCard) object representing the currently inserted Smart Card.

### Getting the Slot State

[`state`](/documentation/CryptoTokenKit/TKSmartCardSlot/state-swift.property)

The current state of the Smart Card reader slot.

[`TKSmartCardSlot.State`](/documentation/CryptoTokenKit/TKSmartCardSlot/State-swift.enum)

All smart card slot states.

### Getting the Slot Configuration

[`name`](/documentation/CryptoTokenKit/TKSmartCardSlot/name)

The name of the Smart Card reader slot.

[`maxInputLength`](/documentation/CryptoTokenKit/TKSmartCardSlot/maxInputLength)

The maximum length of input APDU (Application Protocol Data Unit) that the Smart Card reader slot is able to transfer to the Smart Card.

[`maxOutputLength`](/documentation/CryptoTokenKit/TKSmartCardSlot/maxOutputLength)

The maximum length of output APDU (Application Protocol Data Unit) that the Smart Card reader slot is able to transfer from the Smart Card.

### Reading the Answer to Reset

[`atr`](/documentation/CryptoTokenKit/TKSmartCardSlot/atr)

The ATR (Answer to Reset) of the inserted Smart Card, or `nil` if no Smart Card is inserted or the inserted Smart Card is mute.

[`TKSmartCardATR`](/documentation/CryptoTokenKit/TKSmartCardATR)

A parsed ATR (Answer To Reset) message from a Smart Card.



---

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)