<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -",
    "watchOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKReferenceSex",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKReferenceSex"
  },
  "title" : "HKReferenceSex"
}
-->

# HKReferenceSex

```
enum HKReferenceSex
```

## Overview

\abstract The sex whose reference ranges should be used when classifying a clinical measurement for the user.
\discussion Distinct from HKBiologicalSex, which represents the user’s biological sex as shown in their Health
profile. Use HKReferenceSex when choosing which reference range applies, and HKBiologicalSex when
displaying or reasoning about the profile value itself. The two are independent and may differ.

## Topics

### Enumeration Cases

[`case female`](/documentation/HealthKit/HKReferenceSex/female)

[`case male`](/documentation/HealthKit/HKReferenceSex/male)

[`case notSet`](/documentation/HealthKit/HKReferenceSex/notSet)

### Initializers

[`init?(rawValue: Int)`](/documentation/HealthKit/HKReferenceSex/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)