Changes in this version
Pages missing from one check, then back (no net change).
- Not assessed
7 sections
- LabelsLabels: added, 148 words Not marked in the text. Go to the first change on this page
- Labels › Best practicesBest practices: added, 198 words
- Labels › Platform considerationsPlatform considerations: added, 11 words
- Platform considerations › macOSmacOS: added, 16 words
- Platform considerations › watchOSwatchOS: added, 127 words
- Labels › ResourcesResources: added, 16 words
- Labels › Change logChange log: added, 15 words
7 sections · 61 additions, 0 deletions
Other pages in this version: 1371 sections on 156 pages. All pages changed in v12
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.
- Labels: Not assessed
- Rules require at least Notable: the section is new.
- Labels › Best practices: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Labels › 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 › macOS: 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 › watchOS: Not assessed
- Rules require at least Notable: a region, platform, program or kind of app was named or dropped; the section is new.
- Labels › Resources: Not assessed
- Rules require at least Notable: the section is new.
- Labels › 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)
Labels
Labels display text throughout the interface, in buttons, menu items, and views, helping people understand the current context and what they can do next.
The term label refers to uneditable text that can appear in various places. For example:
Within a button, a label generally conveys what the button does, such as Edit, Cancel, or Send.
Within many lists, a label can describe each item, often accompanied by a symbol or an image.
Within a view, a label might provide additional context by introducing a control or describing a common action or task that people can perform in the view.
The guidance below can help you use a label to display text. In some cases, guidance for specific components — such as action buttons, menus, and lists and tables — includes additional recommendations for using text.
Not assessed · Best practicesBest practices
Use a label to display a small amount of text that people don’t need to edit. If you need to let people edit a small amount of text, use a text field. If you need to display a large amount of text, and optionally let people edit it, use a text view.
Prefer system fonts. A label can display plain or styled text, and it supports Dynamic Type (where available) by default. If you adjust the style of a label or use custom fonts, make sure the text remains legible.
Use system-provided label colors to communicate relative importance. The system defines four label colors that vary in appearance to help you give text different levels of visual importance. For additional guidance, see Color.
System color | Example usage | iOS, iPadOS, tvOS, visionOS | macOS |
|---|---|---|---|
Label | Primary information | ||
Secondary label | A subheading or supplemental text | ||
Tertiary label | Text that describes an unavailable item or behavior | ||
Quaternary label | Watermark text |
Make useful label text selectable. If a label contains useful information — like an error message, a location, or an IP address — consider letting people select and copy it for pasting elsewhere.
Not assessed · Platform considerationsPlatform considerations
No additional considerations for iOS, iPadOS, tvOS, or visionOS.
Not assessed · macOSmacOS
Not assessed · watchOSwatchOS
Date and time text components (shown below on the left) display the current date, the current time, or a combination of both. You can configure a date text component to use a variety of formats, calendars, and time zones. A countdown timer text component (shown below on the right) displays a precise countdown or count-up timer. You can configure a timer text component to display its count value in a variety of formats.
When you use the system-provided date and timer text components, watchOS automatically adjusts the label’s presentation to fit the available space. The system also updates the content without further input from your app.
Consider using date and timer components in complications. For design guidance, see Complications; for developer guidance, see Text.
Not assessed · ResourcesResources
Related
Developer documentation
Label — SwiftUI
Text — SwiftUI
UILabel — UIKit
NSTextField — AppKit
Not assessed · Change logChange log
Date | Changes |
|---|---|
June 5, 2023 | Updated guidance to reflect changes in watchOS 10. |