AutoFill username with number pad keyboard seems broken in iOS 12 (works in iOS 11) - ios

My view has just 2 text fields, for username and password. Content type is specified accordingly. I want to use phone numbers as usernames, so I chose "Number Pad" as keyboard type for username field.
The issue is that when I run this on iOS 12, when first selecting username field, the autofill control does not appear above keyboard. If then select password field, it appears. Then I can select username field again and autofill control remains and is available this time.
If I change username keyboard type to default, the issue goes away.
In iOS 11 this issue does not exist.
Anyone knows why it is so?

Related

Is it possible to fill the textfield with OTP without user interaction in Swift?

I am trying to implement an OTP feature in an app.
I know that Apple provides a feature called "oneTimeCode" for textContentType for text field but it needs the user to select to paste on the text field.
field.textContentType = .oneTimeCode
I like to fill the OTP text field without user interaction in 6 separate text fields.
AutoFill UI is necessary and it is managed by OS, so you cannot override this behavior.

iOS 13 autofill not filling UITextField until user manually focuses it

Basic description: I have a modal dialog that appears with two UITextFields with their content types set correctly for autofill, the keyboard appears on textfield focus, with the iOS autofill prompt. The autofill action sheet appears, and I select the correctly identified credential, the action sheet dismisses, returning my app to the foreground, yet the credentials are not entered into the text fields until the user manually focuses them, at which point the system keyboard is re-shown and the credentials are entered correctly.
Environment:
Xcode 11.3
iOS Sim 13.3 (problem was originally reported from a physical device with 13.3)
Using PanModal from Slack (https://github.com/slackhq/PanModal) with some customizations added to handle keyboard showing and presenting vc animations (https://github.com/mgray88/PanModal/tree/toc.1)
Text fields are custom subclasses of UITextField
Scene support is explicitly disabled
Strange error message reported in the console, which excessive amount of Googling has not yielded any answers:
Keyboard cannot present view controllers (attempted to present <UIKeyboardHiddenViewController_Autofill: 0x7fe5d37bd640>)
This appears upon selecting the Autofill button on the keyboard toolbar
Followed by textFieldShouldEndEditing and textFieldCanResignFirstResponder, which is to be expected
The autofill action sheet presents, and I select the desired credentials
Action sheet dismisses, returning focus to the app
At this point, the credentials should have been entered into the text fields
HOWEVER, the credentials are not entered into the text fields until the user manually selects one of them
None of the text field delegate methods are fired until manual focus
None of the first responder methods are fired
Example project which demonstrates this issue: https://github.com/mgray88/AutofillTest

UITextField content type password some time change the state while entering password

I am using Xocde - 10.1 and added a UITextField in storyboard
Properties of the text field are shown on the following screen shot -
When I'm entering a password, it shows me a warning 'Strong password' and user interaction is being disabled for the text field.
Additional explanation - the text field works fine most of the time while I am entering the text inside it. But sometimes a text that should be hidden is being shown in the left side of the text field (like on screenshot above). If I reload the view, then I will be able to edit it. Otherwise - I won't be able to continue editing it.
This is the iOS 12 Password AutoFill behavior. I'd try removing the ContentType of Password on the field for simulator only if it's causing you problems there. On a device I suspect you'd get the expected behavior and be able to interact as outlined here.
You may also have to move the show/hide password image out of the text field if you want to support strong password autofill.

Email keyboard in alternative mode (when digits are visible)

I have a UITextField where sip connection data can be entered. So for example:
2342452#somedomain.com
In general problem is that this looks like an email, but for 90% of cases user will enter numbers first.
So I've set email keyboard, but I would like to activate alternative keyboard mode, so digits would be visible when keyboard is shown (see picture):
Is it possible?

Edittext changing text which is clickable in android?

I found difficulty in changing text in Android.
My Problem is: I have a edit text name Password, it is disable and having some password eg, 123 when i enable that edittext having password it convert that in Reset Password text.
Now i have to click on reset password it open a dialog box.
Now tell me how to change text after enabling which is clickable.

Resources