Instance Property

isAccessibilityElement

A Boolean value indicating whether the receiver is an accessibility element that an assistive application can access.

Declaration

var isAccessibilityElement: Bool { get set }

Discussion

The default value for this property is false unless the receiver is a standard UIKit control, in which case the value is true.

Assistive applications can get information only about objects that are represented by accessibility elements. Therefore, if you implement a custom control or view that should be accessible to users with disabilities, set this property to true. The only exception to this practice is a view that merely serves as a container for other items that should be accessible. Such a view should implement the UIAccessibilityContainer protocol and set this property to false.