Contents

smartDashesType

The configuration state for smart dashes.

Declaration

optional var smartDashesType: UITextSmartDashesType { get set }

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