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

# nsPredicate

The request’s predicate.

## Declaration

```swift
@MainActor @preconcurrency var nsPredicate: NSPredicate?
```

## Discussion

Discussion Set this configuration value to cause a FetchRequest to execute a fetch with a new predicate. Access this value of a FetchRequest.Configuration structure for a given request by using the nsPredicate property on the associated FetchedResults instance, either directly or through a Binding.
