---
title: smartInsertDeleteType
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputtraits/smartinsertdeletetype
---

# smartInsertDeleteType

The configuration state for the smart insertion and deletion of space characters.

## Declaration

```swift
optional var smartInsertDeleteType: UITextSmartInsertDeleteType { get set }
```

## Discussion

Discussion Use this property to configure whether UIKit may insert an extra space after a paste operation or delete one or two spaces after a cut or delete operation. The default value of this property is UITextSmartInsertDeleteType.default, which selectively enables the behavior based on the keyboard type.

## See Also

### Configuring the autoformatting behaviors

- [smartQuotesType](uikit/uitextinputtraits/smartquotestype.md)
- [UITextSmartQuotesType](uikit/uitextsmartquotestype.md)
- [smartDashesType](uikit/uitextinputtraits/smartdashestype.md)
- [UITextSmartDashesType](uikit/uitextsmartdashestype.md)
- [UITextSmartInsertDeleteType](uikit/uitextsmartinsertdeletetype.md)
