Contents

setAccessibilityIdentifier(_:)

Sets the unique identifier string for the interface object.

Declaration

func setAccessibilityIdentifier(_ accessibilityIdentifier: String?)

Parameters

  • accessibilityIdentifier:

    A string containing the identifier of the element. Specify nil to clear the existing identifier.

Discussion

Use the identifier in this property to distinguish between different objects in your app. The identifier string is used solely for programmatic identity, as opposed to many other accessibility attributes.

See Also

Configuring the Accessibility Attributes