Ga naar hoofdinhoud
Logo Appt Light

Input content type on iOS

Setting the content type for input fields helps user entering data. For example, an e-mail address and password can be autofilled by a password manager. When the content type has not been set, this might not be possible to do automatically.

On iOS, you can set a content type by using the textContentType property.

The following values are defined in UITextContentType:

Example of using textContentType:

emailField.textContentType = .emailAddress
Bijdragen

Feedback?

Laat 't ons weten!