Home > database >  How to hide suggested email id from keyboard in swift
How to hide suggested email id from keyboard in swift

Time:09-16

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 ?

enter image description here

CodePudding user response:

You can set UITextField text content type to an empty string:

txtEmail.textContentType = .init(rawValue: "")
  • Related