---
title: food
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkcorrelationtypeidentifier/food
---

# food

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

## Declaration

```swift
static let food: HKCorrelationTypeIdentifier
```

## Discussion

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

## See Also

### Related Documentation

- [HKCorrelationTypeIdentifier](healthkit/hkcorrelationtypeidentifier.md)
- [HKCorrelationType](healthkit/hkcorrelationtype.md)
- [HKCorrelation](healthkit/hkcorrelation.md)

### Essentials

- [HKMetadataKeyFoodType](healthkit/hkmetadatakeyfoodtype.md)
