---
title: HKQueryOptions
framework: healthkit
role: symbol
role_heading: Structure
path: healthkit/hkqueryoptions
---

# HKQueryOptions

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

## Declaration

```swift
struct HKQueryOptions
```

## Topics

### Constants

- [strictStartDate](healthkit/hkqueryoptions/strictstartdate.md)
- [strictEndDate](healthkit/hkqueryoptions/strictenddate.md)

### Initializers

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

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating sample predicates

- [predicateForSamples(withStart:end:options:)](healthkit/hkquery/predicateforsamples(withstart:end:options:).md)
