-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
2d1d451
to
8344c7a
Compare
0e5d426
to
ac7e623
Compare
2a80a13
to
d0387e9
Compare
da22552
to
ba47226
Compare
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Show resolved
Hide resolved
Example/AccessibilitySnapshot/AccessibilityCustomContentViewController.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Show resolved
Hide resolved
Example/AccessibilitySnapshot/AccessibilityCustomContentViewController.swift
Show resolved
Hide resolved
8ae74e8
to
89ec74e
Compare
c0ed06d
to
ea85500
Compare
The failing iOS 16 CI job should be fixed now with #209. If you rebase on latest main, that build should start passing. |
Example/AccessibilitySnapshot/AccessibilityCustomContentViewController.swift
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Outdated
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilityHierarchyParser.swift
Show resolved
Hide resolved
Sources/AccessibilitySnapshot/Core/Swift/Classes/AccessibilitySnapshotView.swift
Show resolved
Hide resolved
|
||
// MARK: - | ||
|
||
private final class CustomContentView: UIView { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
f686cb1
to
3c5fa8b
Compare
9b29415
to
5b1b27a
Compare
5b1b27a
to
2f24559
Compare
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.