Contents

accessibilityIdentifier()

Returns the accessibility element’s identity.

Declaration

optional func accessibilityIdentifier() -> String

Return Value

Returns the unique ID for the accessibility element. It is often used in automated testing.

Discussion

This method is the getter for the NSAccessibilityProtocol protocol’s accessibilityIdentifier property.

See Also

Supporting Accessibility