---
title: "matches(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextension/matchpattern/matches(_:)-4d84f"
---

# matches(_:)

Matches the receiver pattern against the specified pattern.

## Declaration

```swift
func matches(_ pattern: WKWebExtension.MatchPattern?) -> Bool
```

## Parameters

- `pattern`: The pattern to match against the receiver pattern.

## Return Value

Return Value A Boolean value indicating if the receiver pattern matches the specified pattern.

## See Also

### Related Documentation

- [matches(_:options:)](webkit/wkwebextension/matchpattern/matches(_:options:)-fnde.md)
