Structure

UITextContentType

Constants that identify the semantic meaning expected for a text-entry area.

Declaration

struct UITextContentType

Topics

Type Properties

static let URL: UITextContentType

Specifies the expectation of a URL.

static let addressCity: UITextContentType

Specifies the expectation of a city name.

static let addressCityAndState: UITextContentType

Specifies the expectation of a city name combined with a state name.

static let addressState: UITextContentType

Specifies the expectation of a state name.

static let countryName: UITextContentType

Specifies the expectation of a country name.

static let emailAddress: UITextContentType

Specifies the expectation of an email address.

static let familyName: UITextContentType

Specifies the expectation of a family name.

static let fullStreetAddress: UITextContentType

Specifies the expectation of a street address that fully identifies a location.

static let givenName: UITextContentType

Specifies the expectation of a given name.

static let jobTitle: UITextContentType

Specifies the expectation of a job title.

static let location: UITextContentType

Specifies the expectation of a location, such as a point of interest, an address, or another way to identify a location.

static let middleName: UITextContentType

Specifies the expectation of a middle name.

static let name: UITextContentType

Specifies the expectation of a name.

static let namePrefix: UITextContentType

Specifies the expectation of a prefix or title, such as “Dr.”.

static let nameSuffix: UITextContentType

Specifies the expectation of a suffix, such as “Jr.”.

static let nickname: UITextContentType

Specifies the expectation of a nickname.

static let organizationName: UITextContentType

Specifies the expectation of an organization name.

static let postalCode: UITextContentType

Specifies the expectation of a postal code.

static let streetAddressLine1: UITextContentType

Specifies the expectation of the first line of a street address.

static let streetAddressLine2: UITextContentType

Specifies the expectation of the second line of a street address.

static let sublocality: UITextContentType

Specifies the expectation of a sublocality.

static let telephoneNumber: UITextContentType

Specifies the expectation of a telephone number.

static let username: UITextContentType

The expectation that a text input area specifies an account or login name.

static let password: UITextContentType

The expectation that a text input area specifies a password.

static let newPassword: UITextContentType

The expectation that a text input area specifies a new password.

static let oneTimeCode: UITextContentType

The expectation that a text input area specifies a single-factor SMS login code.

Relationships

See Also

Configuring the Keyboard Appearance

var keyboardType: UIKeyboardType

The keyboard style associated with the text object.

enum UIKeyboardType

The type of keyboard to display for a given text-based view. Used with the keyboardType property.

var keyboardAppearance: UIKeyboardAppearance

The appearance style of the keyboard that is associated with the text object

enum UIKeyboardAppearance

The appearance of the keyboard used by a text-based view. Used with the keyboardAppearance property.

var returnKeyType: UIReturnKeyType

The visible title of the Return key.

enum UIReturnKeyType

The text string displayed in the Return key of a keyboard. Used with the returnKeyType property.

var textContentType: UITextContentType!

The semantic meaning expected by a text input area.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software