---
title: "hash(into:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/entityidentifier/hash(into:)"
---

# hash(into:)

Hashes the entity identifier.

## Declaration

```swift
func hash(into hasher: inout Hasher)
```

## Discussion

Discussion important: This implementation intentionally ignores the stableIdentifier field. Only typeIdentifier and identifier are used for hashing. This ensures that the same entity on different devices (same local ID, different stable ID) has the same hash, enabling correct behavior in Set and Dictionary.
