<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKCorrelationTypeIdentifier/food",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKCorrelationTypeIdentifierFood"
  },
  "title" : "food"
}
-->

# food

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

```
static let food: HKCorrelationTypeIdentifier
```

## Discussion

When creating food samples, specify the type of food using the [`HKMetadataKeyFoodType`](/documentation/HealthKit/HKMetadataKeyFoodType) metadata key.

## See Also

[`HKCorrelationTypeIdentifier`](/documentation/HealthKit/HKCorrelationTypeIdentifier)

The identifiers that create correlation type objects.

[`HKCorrelationType`](/documentation/HealthKit/HKCorrelationType)

A type that identifies samples that group multiple subsamples.

[`HKCorrelation`](/documentation/HealthKit/HKCorrelation)

A sample that groups multiple related samples into a single entry.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)