Instance Property


An array of the accessibility elements in the container.


var accessibilityElements: [Any]? { get set }


Containers can implement this property instead of the dynamic methods to support the retrieval of the contained elements. The default value of this property is nil.

See Also

Providing Information About Accessibility Elements

func accessibilityElementCount() -> Int

Returns the number of accessibility elements in the container.

func accessibilityElement(at: Int) -> Any?

Returns the accessibility element at the specified index.

func index(ofAccessibilityElement: Any) -> Int

Returns the index of the specified accessibility element.

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