-
Notifications
You must be signed in to change notification settings - Fork 54
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
Ax parent #190
base: master
Are you sure you want to change the base?
Ax parent #190
Conversation
Need to fill out subliminal methods for abstracting these concepts.
This has basic docs (needs fleshing out). But a working version of a solution for child and parent accessibility elements, along with implementations for UINavigationBar and UITableViewCell.
On iOS 6, table view cells themselves appear in the accessibility hierarchy. On iOS 7, mock cells (instances of `UITableViewCellAccessibilityElement`) appear in the hierarchy instead.
Documented view and accessibility view heirarchy for iOS 6 and 7 for UITableViewCells. It is slightly different and needed to be accounted for.
Extended to all elements and allowed `SLTableViewCell` to override.
@@ -376,6 +376,9 @@ @implementation UITableViewCell (SLAccessibilityHierarchy) | |||
- (BOOL)classForcesPresenceOfMockingViewsInAccessibilityHierarchy { | |||
return YES; | |||
} | |||
- (BOOL)classForcesPresenceInAccessibilityHierarchy { |
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.
I'm curious to see that you reverted the version-specific checks. Is there no difference between versions? How can both instances and their mock views be present in the hierarchy? (It'd be nice to describe whatever the answer is in a comment in the source.)
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.
Also can you add case(s) to SLElementMatchingTest
exercising whatever this addition fixed?
You've made the core functionality here pretty elegant @jzucker2! 👍 Most of my feedback is about making the tests as straightforward:
Thanks for iterating on this. |
This is a proposed solution to this issue: #189