Type Property

food

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

Declaration

static let food: HKCorrelationTypeIdentifier

Discussion

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

See Also

First Steps

let HKMetadataKeyFoodType: String

The type of food that the HealthKit object represents.