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.

var accessibilityContainerType: UIAccessibilityContainerType

The type of container used for accessibility elements, such as tables or lists.

enum UIAccessibilityContainerType

Constants indicating the type of content stored in a data-based container.