---
title: contentView()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextfinderbarcontainer/contentview()
---

# contentView()

A view hierarchy that contains all the views which display the contents being searched.

## Declaration

```swift
optional func contentView() -> NSView?
```

## Return Value

Return Value The root view of the content view hierarchy.

## Discussion

Discussion This content view defines the view hierarchy to be dimmed during incremental search, if the NSTextFinder instance’s incrementalSearchingShouldDimContentView is true. If this method is not implemented or returns nil, then the NSTextFinder instance will act as if incrementalSearchingShouldDimContentView is false

## See Also

### Find Bar View

- [findBarView](appkit/nstextfinderbarcontainer/findbarview.md)
- [isFindBarVisible](appkit/nstextfinderbarcontainer/isfindbarvisible.md)
