Instance Property インスタンスプロパティ

accessibilityTraits

The combination of accessibility traits that best characterizes the accessibility element.

Declaration 宣言

var accessibilityTraits: UIAccessibilityTraits { get set }

Discussion 解説

The default value for this property is none unless the element is a UIKit control, in which case, the value is the standard set of traits for the control.

If you implement a custom control or view, you need to select all the accessibility traits that best characterize the object, and combine them with its superclass’s traits (that is, with super.accessibilityTraits) by performing an OR operation. See Accessibility Traits for a complete list of traits.

See Also 参照

Supporting Basic Accessibility