https://kotlinlang.org logo
ł

Łukasz Zieliński

09/12/2023, 1:37 PM
Hi! Is there a way to set textContentType (username / password) in compose textfields on iOS? I can see that it has something to do with implementing SkikoUITextInputTraits but I have no idea how to even start setting it in a single text field. My aim is to enable autofill this way.
k

Kilian

09/12/2023, 1:57 PM
to show ** you can use PasswordVisualTransformation() and toggle it on of with a button and use VisualTransformation.None if toggled of and to set the correct keyboard type you can use keyboard options like so
Copy code
KeyboardOptions.Default.copy(keyboardType = KeyboardType.Password)
ł

Łukasz Zieliński

09/12/2023, 10:28 PM
@Kilian yes I have it this way. But the keyboard settings do not change autofill behavior and user can't fill in the form using saved username/password.
2 Views