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

# hash(into:)

Hashes the essential components of the color by feeding them into the given hash function.

## Declaration

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

## Parameters

- `hasher`: The hash function to use when combining the components of the color.

## See Also

### Comparing colors

- [==(_:_:)](swiftui/color/==(_:_:).md)
