---
title: "init(type:startDate:endDate:objects:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkcorrelation/init(type:startdate:enddate:objects:)"
---

# init(type:startDate:endDate:objects:)

## Declaration

```swift
convenience init(type correlationType: HKCorrelationType, startDate: Date, endDate: Date, objects: Set<HKSample>)
```
