<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTouch/identity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTouch(py)identity"
  },
  "title" : "identity"
}
-->

# identity

The changes to a particular touch during its lifetime.

```
var identity: any NSCopying & NSObjectProtocol { get }
```

## Discussion

While touch identities may be re-used, they are unique during the life of the touch, even when multiple devices are present.

Identity objects implement the <doc://com.apple.documentation/documentation/Foundation/NSCopying> protocol so that they may be used as keys in an <doc://com.apple.documentation/documentation/Foundation/NSDictionary>. Use isEqual: to compare two touch identities.

---

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)