---
title: nsPredicate
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/fetchedresults/nspredicate
---

# nsPredicate

The request’s predicate.

## Declaration

```swift
@MainActor @preconcurrency var nsPredicate: NSPredicate? { get nonmutating set }
```

## Discussion

Discussion Set this value to cause the associated FetchRequest to execute a fetch with a new predicate, producing an updated collection of results.

## See Also

### Configuring the associated fetch request

- [sortDescriptors](swiftui/fetchedresults/sortdescriptors.md)
- [nsSortDescriptors](swiftui/fetchedresults/nssortdescriptors.md)
