---
title: sampleType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkquerydescriptor/sampletype
---

# sampleType

The data type of samples that match this descriptor.

## Declaration

```swift
@NSCopying var sampleType: HKSampleType { get }
```

## Discussion

Discussion For more information, see Data types.

## See Also

### Accessing Descriptor Data

- [predicate](healthkit/hkquerydescriptor/predicate.md)
