---
title: smartDashesType
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputtraits/smartdashestype
---

# smartDashesType

The configuration state for smart dashes.

## Declaration

```swift
optional var smartDashesType: UITextSmartDashesType { get set }
```

## Discussion

Discussion Use this property to configure whether UIKit converts two hyphens into an en-dash and three hyphens into an em-dash automatically. The default value of this property is UITextSmartDashesType.default, which selectively enables smart dashes based on the keyboard type.

## See Also

### Configuring the autoformatting behaviors

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