Skip to content

label

Category: Instance Property

Platforms: iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+

Overview

A localized string that identifies the label for this content.

Declaration

var label: String { get }

Details

See Also

  • Defining custom content
  • var attributedLabel: NSAttributedString
  • var value: String
  • var attributedValue: NSAttributedString
  • var importance: AXCustomContent.Importance
  • enum Importance

Discussion

Make the label succinct to work well with assistive technology. For example, Orientation is an appropriate name for photo information.

Topics (Grouped)

Defining custom content

Code Examples

var label: String { get }

Source: https://developer.apple.com/documentation/accessibility/axcustomcontent/label