Material icon indicating copy to clipboard operation
Material copied to clipboard

Space between TextField and Left Icon

Open CTNCardoso opened this issue 5 years ago • 7 comments

Captura de Tela 2019-10-12 às 20 25 41

Problem is happening with iOS 13.

I tested it on iOS 11 and 12 and it worked perfectly.

CTNCardoso avatar Oct 12 '19 23:10 CTNCardoso

Any workaround?

Shempaiii avatar Oct 16 '19 06:10 Shempaiii

Is that happening after iOS 13?

You can try playing with textField.textInsets.left = 10

OrkhanAlikhanov avatar Oct 16 '19 07:10 OrkhanAlikhanov

Yes, it solves the EditText problem, but it generates a problem with label. Captura de Tela 2019-10-16 às 08 30 43 Captura de Tela 2019-10-16 às 08 30 30

Yes, this issue is only occurring on iOS 13.

CTNCardoso avatar Oct 16 '19 11:10 CTNCardoso

Can you try textField.leftViewOffset = 32, default value is 16

OrkhanAlikhanov avatar Oct 16 '19 11:10 OrkhanAlikhanov

Using "textField.textInsets.left = 20" and "textField.leftViewOffset = 32" Captura de Tela 2019-10-16 às 08 48 09

This moved the divider.

CTNCardoso avatar Oct 16 '19 11:10 CTNCardoso

Is there a fix for this issue?

jbdujardin avatar Dec 06 '19 16:12 jbdujardin

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.

febinrv avatar Dec 23 '19 10:12 febinrv