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

# webViewDidChangeTypingStyle(_:)

Sent by the default notification center when the user changes the typing style in the web view.

```
optional func webViewDidChangeTypingStyle(_ notification: Notification!)
```

## Parameters

`notification`

Always set to [`WebViewDidChangeTypingStyleNotification`](/documentation/WebKit/WebViewDidChangeTypingStyleNotification). You can retrieve the `WebView` object by sending `object` to `notification`.

## See Also

[`webView(_:shouldChangeTypingStyle:toStyle:)`](/documentation/WebKit/WebEditingDelegate/webView(_:shouldChangeTypingStyle:toStyle:))

Returns whether the user should be allowed to change the typing style in a web view.



---

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)