Skip to content

value

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 provides a value for the label.

Declaration

var value: String { get }

Details

See Also

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

Discussion

Make the value succinct to work well with assistive technology. For example, either Portrait or Landscape is an appropriate content value for an Orientation label on a photo.

Topics (Grouped)

Defining custom content

Code Examples

var value: String { get }

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