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

# sampleType

The type of samples that the query returns.

## Declaration

```swift
let sampleType: HKSampleType
```

## See Also

### Accessing Sample Predicate Data

- [nsPredicate](healthkit/hksamplepredicate/nspredicate.md)
