---
title: host
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextension/matchpattern/host
---

# host

The host part of the pattern string, unless matchesAllURLs is YES.

## Declaration

```swift
var host: String? { get }
```
