<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardUserInteraction/run(reply:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardUserInteraction(im)runWithReply:"
  },
  "title" : "run(reply:)"
}
-->

# run(reply:)

Runs the user interaction and asynchronously receives a reply.

```
func run(reply: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

## Parameters

`reply`

- success: Whether the user interaction was successful.
- error: Contains information about the the error that occurred during the user interaction.

    The     `NSError`     object is created in the [`TKErrorDomain`](/documentation/CryptoTokenKit/TKErrorDomain)     domain with a code in the [`TKError.Code`](/documentation/CryptoTokenKit/TKError/Code)     enumeration.

## Discussion

---

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)