---
title: HKPredicateKeyPathCategoryValue
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathcategoryvalue
---

# HKPredicateKeyPathCategoryValue

The key path for accessing the category sample’s value.

## Declaration

```swift
let HKPredicateKeyPathCategoryValue: String
```

## Discussion

Discussion Use this constant whenever you want to include a sample’s quantity in a predicate format string. Add a %K placeholder to the format string, and then pass this constant as an argument.
