Contents

setAccessibilityTraits(_:)

Sets the combination of accessibility traits that best characterize the accessibility element.

Declaration

func setAccessibilityTraits(_ accessibilityTraits: UIAccessibilityTraits)

Parameters

  • accessibilityTraits:

    The traits that characterize this element. For a list of traits and appropriate combinations, see Uiaccessibilitytraits.

Discussion

Use this method to change the accessibility traits associated with your interface objects.

See Also

Configuring the Accessibility Attributes