Global Variable

HKCorrelationTypeIdentifierFood

Food correlation types combine any number of nutritional samples into a single food object.

Declaration

const HKCorrelationTypeIdentifier HKCorrelationTypeIdentifierFood;

Discussion

When creating food samples, specify the type of food using the HKMetadataKeyFoodType metadata key.

See Also

Essentials

HKMetadataKeyFoodType

The type of food that the HealthKit object represents.