<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKQueryOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKQueryOptions"
  },
  "title" : "HKQueryOptions"
}
-->

# HKQueryOptions

Constants that describe how a sample’s time period overlaps with the target time period.

```
struct HKQueryOptions
```

## Topics

### Constants

[`HKQueryOptionNone`](/documentation/HealthKit/HKQueryOptions/HKQueryOptionNone)

The sample’s time period must overlap part of the target time period.

[`HKQueryOptionStrictStartDate`](/documentation/HealthKit/HKQueryOptions/strictStartDate)

The sample’s start time must fall within the target time period.

[`HKQueryOptionStrictEndDate`](/documentation/HealthKit/HKQueryOptions/strictEndDate)

The sample’s end time must fall within the target time period.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)