---
title: "displayableSubpredicates(of:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspredicateeditorrowtemplate/displayablesubpredicates(of:)"
---

# displayableSubpredicates(of:)

Returns the subpredicates that should be made sub-rows of a given predicate.

## Declaration

```swift
func displayableSubpredicates(of predicate: NSPredicate) -> [NSPredicate]?
```

## Parameters

- `predicate`: A predicate object.

## Return Value

Return Value The subpredicates that should be made sub-rows of predicate. For compound predicates (instances of NSCompoundPredicate), the array of subpredicates; for other types of predicate, returns nil. If a template represents a predicate in its entirety, or if the predicate has no subpredicates, returns nil.

## Discussion

Discussion You can override this method to create custom templates that handle complicated compound predicates.

## See Also

### Primitive Methods

- [match(for:)](appkit/nspredicateeditorrowtemplate/match(for:).md)
- [templateViews](appkit/nspredicateeditorrowtemplate/templateviews.md)
- [setPredicate(_:)](appkit/nspredicateeditorrowtemplate/setpredicate(_:).md)
- [predicate(withSubpredicates:)](appkit/nspredicateeditorrowtemplate/predicate(withsubpredicates:).md)
