<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/text-attributes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Text Attributes"
}
-->

# Text Attributes

Modify how text is displayed, entered, and laid out.

## Topics

### Text Attributes

[accessibilityText](/documentation/TVML/accessibilitytext)

Adds hidden text to an element that is used when VoiceOver is enabled.

[firstName](/documentation/TVML/firstname)

Adds a person’s first name to an element.

[lastName](/documentation/TVML/lastname)

Adds a person’s last name to an element.

[layoutDirection](/documentation/TVML/layoutdirection)

Specifies the direction in which text is displayed.

[secure](/documentation/TVML/secure)

Hides typed text.

[showSpinner](/documentation/TVML/showspinner)

Displays a rotating spinner icon inside of a search field.

### Date Settings

[format](/documentation/TVML/format)

Specifies how a date is displayed.

[locale](/documentation/TVML/locale)

Sets the locale for the date element.

### Keyboard Types

[keyboardType](/documentation/TVML/keyboardtype)

Specifies the keyboard to display.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)