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

# webView(_:didReceiveTitle:for:)

Called when the page title of a frame loads or changes.

```
optional func webView(_ sender: WebView!, didReceiveTitle title: String!, for frame: WebFrame!)
```

## Parameters

`sender`

The web view containing the frame.

`title`

The newly loaded title.

`frame`

The frame being loaded.

## Discussion

This method may be invoked multiple times before all resources for `frame` are completely loaded. Delegates can implement this message to display the page title to the user.

---

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)