Changes in this version
Pages missing from one check, then back (no net change).
- Not assessed
7 sections
- Text viewsText views: added, 57 words Not marked in the text. Go to the first change on this page
- Text views › Best practicesBest practices: added, 168 words
- Text views › Platform considerationsPlatform considerations: added, 10 words
- Platform considerations › iOS, iPadOSiOS, iPadOS: added, 49 words
- Platform considerations › tvOStvOS: added, 28 words
- Text views › ResourcesResources: added, 15 words
- Text views › Change logChange log: added, 15 words
7 sections · 30 additions, 0 deletions
Other pages in this version: 1371 sections on 156 pages. All pages changed in v15
Summaries are written automatically and may be wrong; the diff below is the record.
Why this level
Rules computed from the old and new text set the range a level may take; the level is then chosen within it.
- Text views: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Text views › Best practices: Not assessed
- Rules require at least Notable: the section is new.
- Text views › Platform considerations: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Platform considerations › iOS, iPadOS: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Platform considerations › tvOS: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Text views › Resources: Not assessed
- Rules require at least Notable: the section is new.
- Text views › Change log: Not assessed
- Rules require at least Notable: a number, percentage, amount or duration changed; a region, platform, program or kind of app was named or dropped; the section is new.
Assessment history
- : recorded from earlier history (proposed)
Text views
Text views can be any height and allow scrolling when the content extends outside of the view. By default, content within a text view is aligned to the leading edge and uses the system label color. In iOS, iPadOS, and visionOS, if a text view is editable, a keyboard appears when people select the view.
Not assessed · Best practicesBest practices
Use a text view when you need to display text that’s long, editable, or in a special format. Text views differ from text fields and labels in that they provide the most options for displaying specialized text and receiving text input. If you need to display a small amount of text, it’s simpler to use a label or — if the text is editable — a text field.
Keep text legible. Although you can use multiple fonts, colors, and alignments in creative ways, it’s essential to maintain the readability of your content. It’s a good idea to adopt Dynamic Type so your text still looks good if people change text size on their device. Be sure to test your content with accessibility options turned on, such as bold text. For guidance, see Accessibility and Typography.
Make useful text selectable. If a text view contains useful information such as an error message, a serial number, or an IP address, consider letting people select and copy it for pasting elsewhere.
Not assessed · Platform considerationsPlatform considerations
No additional considerations for macOS, visionOS, or watchOS.
Not assessed · iOS, iPadOSiOS, iPadOS
Show the appropriate keyboard type. Several different keyboard types are available, each designed to facilitate a different type of input. To streamline data entry, the keyboard you display when editing a text view needs to be appropriate for the type of content. For guidance, see Virtual keyboards.
Not assessed · tvOStvOS
You can display text in tvOS using a text view. Because text input in tvOS is minimal by design, tvOS uses text fields for editable text instead.
Not assessed · ResourcesResources
Related
Developer documentation
Text — SwiftUI
UITextView — UIKit
NSTextView — AppKit
Not assessed · Change logChange log
Date | Changes |
|---|---|
June 5, 2023 | Updated guidance to reflect changes in watchOS 10. |