---
title: dietaryCaffeine
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkquantitytypeidentifier/dietarycaffeine
---

# dietaryCaffeine

A quantity sample type that measures the amount of caffeine consumed.

## Declaration

```swift
static let dietaryCaffeine: HKQuantityTypeIdentifier
```

## Discussion

Discussion These samples use mass units (described in HKUnit) and measure cumulative values (described in HKQuantityAggregationStyle).

## See Also

### Related Documentation

- [HKQuantityTypeIdentifier](healthkit/hkquantitytypeidentifier.md)
- [HKQuantitySample](healthkit/hkquantitysample.md)
- [HKQuantity](healthkit/hkquantity.md)
