<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -",
    "watchOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKHealthStore/referenceSex",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "s:So13HKHealthStoreC9HealthKitE12referenceSexSo011HKReferenceF0Vvp"
  },
  "title" : "referenceSex"
}
-->

# referenceSex

The sex whose reference ranges should be used when classifying a clinical measurement for this user.

```
var referenceSex: HKReferenceSex { get throws }
```

## Discussion

`.notSet` when the user has not provided a value. Throws if read authorization was not granted or the value
could not be read.

---

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)