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
- attributedLabel:NSAttributedString — var; A localized attributed string that identifies the label for this content.
- value:String — var; A localized string that provides a value for the label.
- attributedValue:NSAttributedString — var; A localized attributed string that provides a value for the label.
- importance:AXCustomContent.Importance — var; An object that determines when to output custom accessibility content.
- Importance — enum; Objects that control the timing of content output.
Code Examples
var label: String { get }
Source: https://developer.apple.com/documentation/accessibility/axcustomcontent/label