---
title: hashValue
framework: corefoundation
role: symbol
role_heading: Instance Property
path: corefoundation/cgfloat-swift.struct/hashvalue
---

# hashValue

The hash value.

## Declaration

```swift
var hashValue: Int { get }
```

## Discussion

Discussion Axiom: x == y implies x.hashValue == y.hashValue. note: The hash value is not guaranteed to be stable across different invocations of the same program.  Do not persist the hash value across program runs.
