---
title: HKReferenceSex
framework: HealthKit
role: symbol
role_heading: Enumeration
platforms: [iOS 27.3+, iPadOS 27.3+, Mac Catalyst 27.3+, macOS 27.3+, visionOS 27.3+, watchOS 27.3+]
path: healthkit/hkreferencesex
---

# HKReferenceSex

## Declaration

```swift
enum HKReferenceSex
```

## Overview

Overview The sex whose reference ranges should be used when classifying a clinical measurement for the user. 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

- [HKReferenceSex.female](healthkit/hkreferencesex/female.md)
- [HKReferenceSex.male](healthkit/hkreferencesex/male.md)
- [HKReferenceSex.notSet](healthkit/hkreferencesex/notset.md)

### Initializers

- [init(rawValue:)](healthkit/hkreferencesex/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
