Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support Accessibility Custom Content #173

Merged
merged 1 commit into from Feb 27, 2024
Merged

Conversation

RoyalPineapple
Copy link
Collaborator

Introduced in iOS 14 Accessibility Custom Content allows the inclusion of arbitrary accessibility content defined using pairs of label and value.
As a default this additional data is exposed under a "Custom Content" rotor entry, but can also be included in the element's VoiceOver utterance by setting the content's importance instance variable to .high or by adjusting verbosity in VoiceOver settings.

This PR adds support for displaying custom content similar to how we handle custom actions.

@RoyalPineapple RoyalPineapple force-pushed the alex/AXCustomContent branch 2 times, most recently from 2d1d451 to 8344c7a Compare December 5, 2023 17:55
@RoyalPineapple RoyalPineapple changed the title alex/AXCustomContent Support AXCustomContent Jan 16, 2024
@RoyalPineapple RoyalPineapple changed the title Support AXCustomContent Support Accessibility Custom Content Jan 16, 2024
@RoyalPineapple RoyalPineapple force-pushed the alex/AXCustomContent branch 6 times, most recently from 2a80a13 to d0387e9 Compare January 23, 2024 16:07
@RoyalPineapple RoyalPineapple marked this pull request as ready for review January 23, 2024 16:30
@NickEntin
Copy link
Collaborator

NickEntin commented Feb 17, 2024

The failing iOS 16 CI job should be fixed now with #209. If you rebase on latest main, that build should start passing.


// MARK: -

private final class CustomContentView: UIView {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@NickEntin Not an item for this PR, but this file is starting to get fairly large. Would it be worthwhile refactoring the subclasses into their own files?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, it's probably time 👍

@RoyalPineapple RoyalPineapple force-pushed the alex/AXCustomContent branch 2 times, most recently from f686cb1 to 3c5fa8b Compare February 27, 2024 16:14
@RoyalPineapple RoyalPineapple merged commit 379a4f7 into master Feb 27, 2024
9 checks passed
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.

Snapshots should include custom content
4 participants