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

# init(_:)

Creates a correlation type using the provided identifier.

## Declaration

```swift
convenience init(_ identifier: HKCorrelationTypeIdentifier)
```

## Parameters

- `identifier`: An identifier that specifies the type of data to store in the sample. For a complete list of correlation type identifiers, see doc://com.apple.healthkit/documentation/HealthKit/HKCorrelationTypeIdentifier.
