<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -",
    "macOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 8.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQuantitySeriesSampleQueryDescriptor/Result/sample",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "s:9HealthKit37HKQuantitySeriesSampleQueryDescriptorV6ResultV6sampleSo0cE0CSgvp"
  },
  "title" : "sample"
}
-->

# sample

The quantity sample that owns the series of data entries.

```
let sample: HKQuantitySample?
```

## Discussion

HealthKit sets this value to `nil` unless you included the [`includeSample`](/documentation/HealthKit/HKQuantitySeriesSampleQueryDescriptor/Options-swift.struct/includeSample) option when you created the series query descriptor.

---

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)