---
title: identity
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstouch/identity
---

# identity

The changes to a particular touch during its lifetime.

## Declaration

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

## Discussion

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 NSCopying protocol so that they may be used as keys in an NSDictionary. Use isEqual: to compare two touch identities.

## See Also

### Using Touch Properties

- [phase](appkit/nstouch/phase-swift.property.md)
- [NSTouch.Phase](appkit/nstouch/phase-swift.struct.md)
- [normalizedPosition](appkit/nstouch/normalizedposition.md)
- [isResting](appkit/nstouch/isresting.md)
