I am trying to use Auto Fill OTP but it is not working. Anyone help me.
if #available(iOS 12.0, *) {
otpField.textContentType = .oneTimeCode
}
If you've to implement AutoFill-OTP
in iOS then it requires iOS 12 and above
You've to set TextField
ContentType
to OneTimeCode
as below image
Note:- It only works when OTP message is included
Code
orPassCode
keyword.