I want to hide email suggestion which is displaying while i choose email textField in my application.
I have tried different options like below but none of them works for me.
txtEmail.autocorrectionType = .no
txtEmail.accessibilityLabel = .none
txtEmail.textContentType = .none
Is there anything else a part from this which i missed out ?
CodePudding user response:
You can set UITextField text content type to an empty string:
txtEmail.textContentType = .init(rawValue: "")