Learn Courses My Dashboard

How can i disable input textfield from user with only One-Time-Code auto fill support

I want to disable manual text entering from one-time-code textField while the user only can tap SMS OTP Code from Keyboard Quicktype Bar.

Another question i got from seeing whatsapp is that their input shows the Keyboard Quicktype bar automatically while mine is not unless i call becomeFirstResponder

How can i achieve this?


Welcome to the community!

Why would you want to disable this? What happens if a person forgot to tap the code, before it goes away?

They’re stuck. It’s also not good for accessibility