<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebUIDelegate/webViewHeaderHeight(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebUIDelegate(im)webViewHeaderHeight:"
  },
  "title" : "webViewHeaderHeight(_:)"
}
-->

# webViewHeaderHeight(_:)

Returns the height of the web view’s printed page header.

```
optional func webViewHeaderHeight(_ sender: WebView!) -> Float
```

## Parameters

`sender`

The web view that sent the message.

## Return Value

The height of the web view’s printed page header. Returns `0.0` if no space is reserved for the header.

## Discussion

The height returned by this method is used to calculate the rectangle passed to the [`webView(_:drawHeaderIn:)`](/documentation/WebKit/WebUIDelegate/webView(_:drawHeaderIn:)) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)