Skip to content

feat(ios): improve VoiceOver focus precision with per-line accessibility paths#244

Merged
hryhoriiK97 merged 1 commit intomainfrom
feat/ios-accessibility-improvements
Apr 15, 2026
Merged

feat(ios): improve VoiceOver focus precision with per-line accessibility paths#244
hryhoriiK97 merged 1 commit intomainfrom
feat/ios-accessibility-improvements

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

What/Why?

Multi-line VoiceOver elements previously used a single bounding rectangle, which could highlight large empty regions when text didn't span the full width. This PR uses accessibilityPath with per-line UIBezierPath rects so the focus highlight tightly follows the visible text on each line. Also cleans up naming, extracts shared range-clamping logic, and replaces magic padding values with a named constant.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 merged commit 1d398d0 into main Apr 15, 2026
5 checks passed
@hryhoriiK97 hryhoriiK97 deleted the feat/ios-accessibility-improvements branch April 16, 2026 10:28
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.

1 participant