Instance Method

accessibilityElement(at:)

Returns the accessibility element at the specified index.

Declaration

func accessibilityElement(at index: Int) -> Any?

Parameters

index

The index of the accessibility element.

Return Value

The accessibility element at the specified index, or nil if none exists.

See Also

Providing Information About Accessibility Elements

func accessibilityElementCount() -> Int

Returns the number of accessibility elements in the container.

func index(ofAccessibilityElement: Any) -> Int

Returns the index of the specified accessibility element.

var accessibilityElements: [Any]?

An array of the accessibility elements in the container.

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