Enumeration

UITextBorderStyle

The type of border drawn around the text field.

Topics

Constants

case none

The text field does not display a border.

case line

Displays a thin rectangle around the text field.

case bezel

Displays a bezel-style border for the text field. This style is typically used for standard data-entry fields.

case roundedRect

Displays a rounded-style border for the text field.

See Also

Accessing the Text Attributes

var text: String?

The text displayed by the text field.

var attributedText: NSAttributedString?

The styled text displayed by the text field.

var placeholder: String?

The string that is displayed when there is no other text in the text field.

var attributedPlaceholder: NSAttributedString?

The styled string that is displayed when there is no other text in the text field.

var defaultTextAttributes: [String : Any]

The default attributes to apply to the text.

var font: UIFont?

The font of the text.

var textColor: UIColor?

The color of the text.

var textAlignment: NSTextAlignment

The technique to use for aligning the text.

var typingAttributes: [String : Any]?

The attributes to apply to new text being entered by the user.