apple-dev-mcp
Version:
Complete Apple development guidance: Human Interface Guidelines (design) + Technical Documentation for iOS, macOS, watchOS, tvOS, and visionOS
15 lines (14 loc) • 3.59 kB
Markdown
---
title: Labels
platform: universal
category: visual-design
url: https://developer.apple.com/design/human-interface-guidelines/labels
quality_score: 0.48
content_length: 3166
last_updated: 2025-07-20T03:44:27.603Z
keywords: ["labels","universal","visual-design","interface","buttons","system","visual","color","presentation","input","design"]
has_code_examples: false
has_images: false
is_fallback: false
---
Labels A label is a static piece of text that people can read and often copy, but not edit. 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. Developer note To display uneditable text, Swift UI defines two components: Label and Text. 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. Best 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 usagei OS, i Pad OS, tv OS, vision OSmac OSLabel Primary informationlabellabel Color Secondary label A subheading or supplemental textsecondary Labelsecondary Label Color Tertiary label Text that describes an unavailable item or behaviortertiary Labeltertiary Label Color Quaternary label Watermark textquaternary Labelquaternary Label Color 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.mac OSDeveloper note To display uneditable text in a label, use the is Editable property of NSText Field.watch OSDate 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. Date label Timer label When you use the system-provided date and timer text components, watch OS 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.