How can I get UITextField's textContentType property to do anything?

This is finally supported in third party apps in iOS 11. I have an app built using the iOS 10.3 SDK installed on iOS 11 beta 1. It includes fields with textContentType = UITextContentTypeEmailAddress and these correctly suggest the two email addresses on my contact card. I also have fields with textContentType = UITextContentTypePostalCode that correctly suggest my zip code.

In addition to the existing types, iOS 11 also adds UITextContentTypeUsername and UITextContentTypePassword, which can be used to support Password AutoFill for Apps.


Just for info (because i could hardly find it in google and apple docs):

In new ios apple provided a new features (look at image). Here is the description and wwdc about them.

  • Smart Dashes
  • Smart Insert
  • Keyboard lock

enter image description here