---
title: templateViews
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspredicateeditorrowtemplate/templateviews
---

# templateViews

Returns the views that display this template’s predicate.

## Declaration

```swift
var templateViews: [NSView] { get }
```

## Return Value

Return Value The views for an NSPredicateEditor to display in a row that represents the predicate from setPredicate(_:).

## Discussion

Discussion NSPredicateEditor treats instances of NSPopUpButton specially by merging their menu items into a single popup button, and by combining menu items with matching titles. In this way, the editor builds a single tree from the separate templates.

## See Also

### Primitive Methods

- [match(for:)](appkit/nspredicateeditorrowtemplate/match(for:).md)
- [setPredicate(_:)](appkit/nspredicateeditorrowtemplate/setpredicate(_:).md)
- [displayableSubpredicates(of:)](appkit/nspredicateeditorrowtemplate/displayablesubpredicates(of:).md)
- [predicate(withSubpredicates:)](appkit/nspredicateeditorrowtemplate/predicate(withsubpredicates:).md)
