Contents

setAccessibilityValue(_:)

Sets the value of the accessibility element.

Declaration

func setAccessibilityValue(_ accessibilityValue: String?)

Parameters

  • accessibilityValue:

    The new value for the accessibility element.

Discussion

When an object has a static label and a dynamic value, set this property to a string that describes the value. For example, a switch object can have a label describing the meaning of the switch, but the value is either On or Off.

See Also

Configuring the Accessibility Attributes