<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/smartInsertDeleteEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(py)smartInsertDeleteEnabled"
  },
  "title" : "smartInsertDeleteEnabled"
}
-->

# smartInsertDeleteEnabled

A Boolean that indicates whether smart-space insertion and deletion is enabled.

```
var smartInsertDeleteEnabled: Bool { get set }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver inserts or deletes space around selected words so as to preserve proper spacing and punctuation. <doc://com.apple.documentation/documentation/Swift/false> if it inserts and deletes exactly what’s selected.

---

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)