UITextfield One Time Code persisting across all fields

Hi

I am setting the textContentType of a single field in my UI.

self.activationCodeField.textContentType = .oneTimeCode

I now find that any textfield throughout the entire app that uses numberPad keyboard type is being suggested the code received via SMS, tested on iOS 14.5 devices.

First of all I am not sure why any other field should be affected by the setting on this single textfield, bet even when I set the type on other fields to .none, the code is still suggested.

anotherTextField.textContentType = .none

Any ideas?
Thanks


Can you create a simplified project to reproduce the issue and show all the code of it?

When you debug the other textfields (when this is happening), what is the value of their .textContentType?

UITextfield One Time Code persisting across all fields
 
 
Q