---
title: "didMatchString(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfdocumentdelegate/didmatchstring(_:)"
---

# didMatchString(_:)

Called for every match found during a find operation.

## Declaration

```swift
optional func didMatchString(_ instance: PDFSelection)
```

## See Also

### Getting Document Search Notifications

- [documentDidBeginDocumentFind(_:)](pdfkit/pdfdocumentdelegate/documentdidbegindocumentfind(_:).md)
- [documentDidBeginPageFind(_:)](pdfkit/pdfdocumentdelegate/documentdidbeginpagefind(_:).md)
- [documentDidEndDocumentFind(_:)](pdfkit/pdfdocumentdelegate/documentdidenddocumentfind(_:).md)
- [documentDidEndPageFind(_:)](pdfkit/pdfdocumentdelegate/documentdidendpagefind(_:).md)
- [documentDidFindMatch(_:)](pdfkit/pdfdocumentdelegate/documentdidfindmatch(_:).md)
