Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove AccessibilitySyncOptions. Make the accessibility tree load lazily. #1780

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

ASalavei
Copy link
Collaborator

@ASalavei ASalavei commented Jan 17, 2025

Make the accessibility tree load lazily. The tree will load completely after the first request from the iOS accessibility engine, and dispose when the screen reader no longer interacts with it.
Remove AccessibilitySyncOptions because it is no loner needed.
Lazy load allows to add support of VoiceControl as well as other screen-reader based features.

Fixes (partially) https://youtrack.jetbrains.com/issue/CMP-7268/High-CPU-consumption-when-using-accessibility
Fixes https://youtrack.jetbrains.com/issue/CMP-6770/Remove-AccessibilitySyncOptions

Release Notes

Features - iOS

  • Support VoiceControl on iOS.
  • AccessibilitySyncOptions removed. The accessibility tree is built on demand.

Fixes - iOS

  • Performance issues when iOS screen reader is active fixed.

Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mention API changes in release notes

@ASalavei ASalavei requested a review from mazunin-v-jb January 21, 2025 08:32
@igordmn igordmn removed their request for review January 21, 2025 10:51
@ASalavei ASalavei merged commit 4c6fc00 into jb-main Jan 21, 2025
7 checks passed
@ASalavei ASalavei deleted the andrei.salavei/lazy-ios-accessibility-load branch January 21, 2025 12:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants