Creates and initializes an accessibility element to represent an item in the specified container.


init(accessibilityContainer container: Any)



The view that contains the item.

Return Value

An accessibility element to represent a non-view item in the container.


In general, you do not create accessibility elements for items in your application because standard UIKit controls and views are accessible by default. However, if you have a view that contains nonview items, such as icons or text images, that need to be accessible to users with disabilities, you create accessibility elements to represent them. In this case, the containing view should implement the UIAccessibilityContainer informal protocol and use this method to create an accessibility element to represent each item that should be exposed to an assistive application.

See Also