<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKMetadataKeyBloodGlucoseMealTime",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKMetadataKeyBloodGlucoseMealTime"
  },
  "title" : "HKMetadataKeyBloodGlucoseMealTime"
}
-->

# HKMetadataKeyBloodGlucoseMealTime

A key that indicates the relative timing of a blood glucose reading to a meal.

```
let HKMetadataKeyBloodGlucoseMealTime: String
```

## Discussion

Set this key on a [`bloodGlucose`](/documentation/HealthKit/HKQuantityTypeIdentifier/bloodGlucose) sample. Set it’s value to an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a [`HKBloodGlucoseMealTime`](/documentation/HealthKit/HKBloodGlucoseMealTime) value.Medical professionals can use the relative meal time to help determine the acceptable range for a blood glucose reading. If your app requires more precise timing or additional information about the meal’s composition, create  samples to record those details (for example, a [`dietaryCarbohydrates`](/documentation/HealthKit/HKQuantityTypeIdentifier/dietaryCarbohydrates) sample with the exact meal time).

## Topics

### Valid Values

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

Constants indicating the timing of a blood glucose sample relative to a meal.



---

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)