---
title: WebDocumentSearching
framework: webkit
role: symbol
role_heading: Protocol
path: webkit/webdocumentsearching
---

# WebDocumentSearching

WebDocumentSearching is an optional protocol for document view objects that support searching. Classes that adopt this protocol should also adopt WebDocumentView and inherit from NSView.

## Declaration

```swift
protocol WebDocumentSearching : NSObjectProtocol
```

## Topics

### Searching a document

- [search(for:direction:caseSensitive:wrap:)](webkit/webdocumentsearching/search(for:direction:casesensitive:wrap:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Working With Document Web Views (Legacy)

- [WebDocumentRepresentation](webkit/webdocumentrepresentation.md)
- [WebDocumentText](webkit/webdocumenttext.md)
- [WebDocumentView](webkit/webdocumentview.md)
