---
title: predicate
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hksourcequerydescriptor/predicate
---

# predicate

A predicate that limits the data used by the query.

## Declaration

```swift
var predicate: HKSamplePredicate<Sample>
```
