<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardToken/init(smartCard:aid:instanceID:tokenDriver:)-38ak2",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardToken(im)initWithSmartCard:AID:instanceID:tokenDriver:"
  },
  "title" : "init(smartCard:aid:instanceID:tokenDriver:)"
}
-->

# init(smartCard:aid:instanceID:tokenDriver:)

Initializes a smart card token with the specified smart card, application identifier, and token driver.

```
init(smartCard: TKSmartCard, aid AID: Data?, instanceID: String, tokenDriver: TKSmartCardTokenDriver)
```

## Parameters

`smartCard`

The smart card on which the created token should operate.

`AID`

The ISO 7816-4 application identifier for the smart card.

`instanceID`

A unique, persistent identifier for this token. This value is typically generated from the serial number of the target hardware.

`tokenDriver`

The driver associated with the created token.

## Discussion

This is the designated initializer.

---

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)