79210097

Date: 2024-11-21 07:35:08
Score: 1
Natty:
Report link

Here’s how you can disable AutoFill for a UITextField:

let textField = UITextField()
textField.textContentType = .none

Disabling AutoFill in Interface Builder

  1. Select your UITextField in Interface Builder.
  2. In the Identity Inspector, locate the Text Content Type field.
  3. Set it to None.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: K.pen