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

# webViewDidEndEditing(_:)

Sent by the default notification center when the user stops editing the web view.

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

## Parameters

`notification`

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

## See Also

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

Returns whether the user should be allowed to end editing.

[`webViewDidBeginEditing(_:)`](/documentation/WebKit/WebEditingDelegate/webViewDidBeginEditing(_:))

Sent by the default notification center when the user begins editing the 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)