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

Specifies the expectation of an account or login name.

static let password: UITextContentType

Specifies the expectation of a password.

static let newPassword: UITextContentType

Specifies the expectation of a new password.

static let oneTimeCode: UITextContentType

Specifies the expectation of 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!

Indicates the semantic meaning expected by a text-entry area.