---
title: HKMetadataKeyFoodType
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkmetadatakeyfoodtype
---

# HKMetadataKeyFoodType

The type of food that the HealthKit object represents.

## Declaration

```swift
let HKMetadataKeyFoodType: String
```

## Discussion

Discussion This key takes a string value. Food objects are usually food samples containing any number of Nutrition Identifiers samples.

## See Also

### Essentials

- [food](healthkit/hkcorrelationtypeidentifier/food.md)
