<!--
{
  "availability" : [
    "iOS: 10.0.0 - 26.0.0",
    "iPadOS: 10.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.12.0 - 26.0.0",
    "tvOS: 11.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 4.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardTokenSession/smartCard",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardTokenSession(py)smartCard"
  },
  "title" : "smartCard"
}
-->

# smartCard

The smart card for the active exclusive session and selected application.

```
var smartCard: TKSmartCard { get }
```

## Discussion

This property can only be accessed in the implementation of a `TKTokenSessionDelegate` protocol delegate method. If the associated token has a value set for the [`aid`](/documentation/CryptoTokenKit/TKSmartCardToken/aid) property, this property opens an exclusive session to the card, with the application already selected.

You should not call [`beginSession(reply:)`](/documentation/CryptoTokenKit/TKSmartCard/beginSession(reply:)) or [`endSession()`](/documentation/CryptoTokenKit/TKSmartCard/endSession()) on the returned value. Instead, the system will take care of beginning the exclusive session and terminating it when the current token request servicing is finished.

You can store any kind of information representing state of the card using the [`context`](/documentation/CryptoTokenKit/TKSmartCard/context) property. This property will be automatically set to `nil` if the card is reset or accessed by different [`TKSmartCard`](/documentation/CryptoTokenKit/TKSmartCard) instance, such as by another process. You can check the [`context`](/documentation/CryptoTokenKit/TKSmartCard/context) property for any previously stored values as a way to avoid costly state restoration before performing an operation.

---

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)