Skip to content

Add AccessibilityFocusTrigger for programmatic VoiceOver focus#610

Draft
RoyalPineapple wants to merge 1 commit intomainfrom
RoyalPineapple/a11y-focus-trigger
Draft

Add AccessibilityFocusTrigger for programmatic VoiceOver focus#610
RoyalPineapple wants to merge 1 commit intomainfrom
RoyalPineapple/a11y-focus-trigger

Conversation

@RoyalPineapple
Copy link
Copy Markdown
Collaborator

Summary

  • Adds AccessibilityFocusTrigger, a late-binding trigger that programmatically moves VoiceOver focus to a Blueprint element's backing view
  • Supports both .layoutChanged and .screenChanged notification types, plus a convenience announce(_:) method
  • Includes .accessibilityFocus(trigger:) Element modifier, unit tests, and a sample app demo screen

Test plan

  • Run AccessibilityFocusTriggerTests to verify trigger binding, unbinding, and notification defaults
  • Launch sample app, navigate to "Accessibility Focus Trigger" demo
  • Enable VoiceOver and verify focus moves correctly for each demo scenario (error focus, async result, layout changed, screen changed)

🤖 Generated with Claude Code

Introduces a late-binding trigger that moves VoiceOver focus to a
Blueprint element's backing view. Includes an Element modifier,
backing view integration, unit tests, and a sample app demo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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