Material
Material copied to clipboard
Space between TextField and Left Icon
Problem is happening with iOS 13.
I tested it on iOS 11 and 12 and it worked perfectly.
Any workaround?
Is that happening after iOS 13?
You can try playing with textField.textInsets.left = 10
Yes, it solves the EditText problem, but it generates a problem with label.
Yes, this issue is only occurring on iOS 13.
Can you try textField.leftViewOffset = 32
, default value is 16
Using "textField.textInsets.left = 20" and "textField.leftViewOffset = 32"
This moved the divider.
Is there a fix for this issue?
Yes, the issue is still there
I have tried
usernameTextField.textInsets.left = 8
usernameTextField.leftViewOffset = -8
But not exactly fixed my issue. the divider origin x is wrong now.