---
title: "init(_:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkheartbeatseriesquerydescriptor/init(_:)"
---

# init(_:)

Creates a heartbeat series query descriptor.

## Declaration

```swift
init(_ sample: HKHeartbeatSeriesSample)
```

## Parameters

- `sample`: The sample containing the heartbeat series.
