Structure

HKCorrelationTypeIdentifier

Used to define the identifier constants that you can pass to the correlationType(forIdentifier:) method to create HKCorrelationType instances. For a list of valid identifiers, see Correlation Identifiers in HealthKit Constants.

Topics

Type Properties

static let bloodPressure: HKCorrelationTypeIdentifier

Blood pressure correlation types combine a systolic sample and a diastolic sample into a single blood pressure reading.

static let food: HKCorrelationTypeIdentifier

Food correlation types combine any number of nutritional samples into a single food object. Ideally, the food object should also specify the type of food it represents using the HKMetadataKeyFoodType metadata key.

Relationships