---
title: predicate
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/historydescriptor/predicate
---

# predicate

The predicate used to initialize the history descriptor.

## Declaration

```swift
var predicate: Predicate<TransactionType>?
```

## See Also

### Getting the descriptor configuration

- [fetchLimit](swiftdata/historydescriptor/fetchlimit.md)
- [sortBy](swiftdata/historydescriptor/sortby.md)
