Methods that associate a unique identifier with elements in your user interface.


protocol UIAccessibilityIdentification


You can use the identifiers you define in UI Automation scripts because the value of accessibilityIdentifier corresponds to the return value of the name method of UIAElement.


Accessing an Element Identifier

var accessibilityIdentifier: String?

A string that identifies the element.


See Also



An informal protocol that provides a way to find out whether an assistive technology, such as VoiceOver, is focused on an accessible element.

protocol UIAccessibilityReadingContent

Methods to implement on an object that represents content that is intended to be read by users, such as a book or an article.

protocol UIAccessibilityContentSizeCategoryImageAdjusting

Methods to determine when to adjust images for different content size categories.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software