Search code examples
iosswift

UITextView transform three dots into ellipsis


When Im typing into UITextField and put three dots in it one by one, the textfield convert them into one symbol-> "..." . Same bahavior with dashes. When Im typing two dashes the field convert them into one long dash. Is it possible to avoid this behavior? I need three dots symbols instead of one symbol.


Solution

  • You need to turn of SmartDashes on your UITextField... This will turn of this behavior...

    You can do this in your InterfaceBuilder, or in Code by

    uiTextField.smartDashesType = .no