You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BlueprintUICommonControls/Sources/AccessibilityElement.swift
+34-25Lines changed: 34 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,9 @@ public struct AccessibilityElement: Element {
26
26
/// An array containing one or more `CustomContent`s, defining additional content associated with the element. Assistive technologies, such as VoiceOver, will announce your custom content to the user at appropriate times.
27
27
publicvarcustomContent:[CustomContent]=[]
28
28
29
+
/// An array of localized labels the user provides to refer to the accessibility element.
30
+
/// This is primarily used for Voice control, an element that contains descriptive information in its accessibilityLabel can return a more concise label. The primary label is first in the array, optionally followed by alternative labels in descending order of importance.
31
+
publicvaruserInputLabels:[String]=[]
29
32
30
33
publicinit(
31
34
label:String?,
@@ -37,6 +40,7 @@ public struct AccessibilityElement: Element {
0 commit comments