Here's what I did:
The result should be "x123x", but what I get is "x 123 x". This happened on all the UITextField of all apps.
Please refer to this gif: demo
Is this an iOS bug? Or am I missing something here?
This is intended behavior. There is a property to disable this on iOS 11:
if #available(iOS 11.0, *) {
textField.smartInsertDeleteType = .no
}
See also: https://developer.apple.com/documentation/uikit/uitextinputtraits/2865828-smartinsertdeletetype?changes=_6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With