Skip to main content

Module attrs

Module attrs 

Source
Expand description

What the numbered accessibility attributes mean.

Found by experiment on iOS 27.0.1 with Settings, Calculator and Notes (2026-11-10): read a screen, compare the numbers with what is visibly there, change one thing, read again. Numbers not listed here are passed through untouched in iph read --raw.

Seen but not used: 1 activation point, 13 custom actions, 48 and 43 other frames, 61 a second role-like number, 73 language, 78 trait descriptions (“버튼”), 87/88 alternative labels, 128 a pointer string.

Modules§

traits
Public UIAccessibilityTraits bits, plus private ones. Seen on device: text_entry and editing (Notes body while typing), search_field (Settings), back_button (navigation bars), toggle (Settings switches), not_enabled (Notes share button on an empty note), keyboard_key (keyboard, Calculator). Not yet seen on device: secure_text, tab_button.

Constants§

CHILDREN
Every child element, on screen or not.
FRAME
{{x, y}, {w, h}} in logical points, screen coordinates.
HINT
Hint text VoiceOver adds after the label (“changes the sign of a value”).
IDENTIFIER
Developer-assigned accessibilityIdentifier. Only in the additional pass.
IS_ELEMENT
Whether this is an accessibility element (false for plain containers).
LABEL
Text VoiceOver would speak for the element. String or attributed string.
LABEL_PLAIN
The label as plain text (number 3 can be an attributed string).
ROLE
Role number, see role_name.
ROLE_DESCRIPTION
Free-text role description, e.g. “back button”.
TRAITS
Bit set of UIAccessibilityTraits, see trait_names.
VALUE
Current value: text of a field, “1”/“0” of a switch, percentage of a slider.
VISIBLE_CHILDREN
Children the phone considers visible.

Functions§

role_name
Role name for an element. The trait bits are the dependable source (they are a public, stable set); the role number refines what traits cannot say.
trait_names