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

# categoryType

The category type for this sample.

## Declaration

```swift
var categoryType: HKCategoryType { get }
```

## Discussion

Discussion This property contains a reference to the sampleType property that is cast as an HKCategoryType object.

## See Also

### Getting Property Data

- [value](healthkit/hkcategorysample/value.md)
