Skip to content

Conversation

ASalavei
Copy link

@ASalavei ASalavei commented Jul 9, 2025

Use UIAccessibilityElementFocusedNotification instead of the private method accessibilityScrollToVisible as a source of accessibility scroll.
Refactor InteropWrappingView to support accessibility focus beyond bounds.

Fixes https://youtrack.jetbrains.com/issue/CMP-7999/Autoscroll-does-not-work-when-accessibility-focuses-on-interop-views

Release Notes

Features - iOS

  • Implement accessibility scroll to focused interop views

@ASalavei ASalavei requested review from mazunin-v-jb and svastven July 9, 2025 11:56

}

private fun iterateAccessibilityElementHierarchy(

Choose a reason for hiding this comment

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

since this returns a boolean would it be more suitable to call it something like findInAccessibilityElementHierarchy or isInAccessibilityElementHierarchy ?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for pointing. I believe the naming is correct since this is the primary action of the function, and considering the implementation, the full name should be something like iterateAccessibilityElementHierarchyAndVerifyElementInCurrentHierarchy()
I added the documentation to make it clear what the method actually does.

@ASalavei ASalavei merged commit 67cbaef into jb-main Jul 11, 2025
10 checks passed
@ASalavei ASalavei deleted the andrei.salavei/scroll-to-interop-views branch July 11, 2025 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants