---
title: value
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkcategorysample/value
---

# value

The category value for this sample.

## Declaration

```swift
var value: Int { get }
```

## Discussion

Discussion This value must come from the appropriate category value enumeration. Each category type uses its own enumeration. For more information, see Category Type Identifiers in HealthKit Constants.

## See Also

### Getting Property Data

- [categoryType](healthkit/hkcategorysample/categorytype.md)
