Skip to content

Commit 8994982

Browse files
authored
update: iOS accessibility tree sync improvement (JetBrains#324)
Describing EAP changes from JetBrains/compose-multiplatform-core#1780
1 parent daad8e8 commit 8994982

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

topics/compose/ios/compose-ios-accessibility.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ You can customize these settings with the new Compose Multiplatform API.
2727

2828
### Choose the tree synchronization option
2929

30+
> In Compose Multiplatform %composeEapVersion%, [this option has been removed](whats-new-compose-180.md#loading-accessibility-tree-on-demand)
31+
> as the accessibility tree is synchronized lazily and no longer requires additional configuration.
32+
>
33+
{style="tip"}
34+
3035
To debug and test events and interactions, you can change the synchronization mode to:
3136
* Never synchronize the tree with UI, for example, to temporarily disable accessibility mapping.
3237
* Always synchronize the tree so that it is rewritten every time the UI updates to test the accessibility integration thoroughly.

topics/whats-new/whats-new-compose-180.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ see the [dedicated article](https://developer.android.com/develop/ui/compose/tou
127127
Compose Multiplatform %composeEapVersion% introduces accessibility support for right-to-left languages,
128128
including proper text direction handling for gestures.
129129

130+
#### Loading accessibility tree on demand
131+
132+
Instead of setting a specific mode of syncing the Compose semantic tree with the iOS accessibility tree,
133+
you can now rely on Compose Multiplatform to handle this process lazily:
134+
the tree is fully loaded after the first request from the iOS accessibility engine
135+
and is disposed of when the screen reader stops interacting with it.
136+
137+
This allows fully supporting iOS Voice Control, VoiceOver,
138+
and other accessibility tools that rely on the accessibility tree.
139+
140+
The `AccessibilitySyncOptions` class, which was [used to configure accessibility tree sync](compose-ios-accessibility.md#choose-the-tree-synchronization-option),
141+
has been removed as it is no longer necessary.
142+
130143
#### Accessibility for scrollable lists
131144

132145
This version improves the performance and accuracy of scrolling boundary and element position calculations.

0 commit comments

Comments
 (0)