Contents

accessibilityLabel

A string that succinctly identifies the accessibility element.

Declaration

var accessibilityLabel: String? { get set }

Mentioned in

Discussion

The label is a very short, localized string that identifies the accessibility element, but does not include the type of the control or view. For example, the label for a Save button is “Save,” not “Save button.”

By default, standard UIKit controls and views have labels that derive from their titles. If you provide a custom control or view, however, you need to set this property appropriately so that assistive applications can supply accurate information to users with disabilities.

See Also

Accessing the attributes of an accessibility element