<!--
{
  "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/TKToken/init(tokenDriver:instanceID:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKToken(im)initWithTokenDriver:instanceID:"
  },
  "title" : "init(tokenDriver:instanceID:)"
}
-->

# init(tokenDriver:instanceID:)

Initializes a token with the driver you specify.

```
init(tokenDriver: TKTokenDriver, instanceID: TKToken.InstanceID)
```

## Parameters

`tokenDriver`

The driver of the token.

`instanceID`

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

## Return Value

A new token object.

## 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)