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

Fix A11Y for horizontal collection nodes in Texture #1217

Merged
merged 2 commits into from
Nov 14, 2018

Conversation

maicki
Copy link
Contributor

@maicki maicki commented Nov 6, 2018

Collections have their own handling in UIKit that we shouldn't mess with. As such no nodes that contain CollectionNodes should ever be treated as AccessibilityContainers.

Collections have their own handling in UIKit that we shouldn't mess with. As such no nodes that contain CollectionNodes should ever be treated as AccessibilityContainers.
#pragma mark - Accessibility overrides

- (NSArray *)accessibilityElements {
[self waitUntilAllUpdatesAreCommitted];
Copy link
Member

@nguyenhuy nguyenhuy Nov 6, 2018

Choose a reason for hiding this comment

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

I’m not familiar with accessbility and not sure when this method is called, but are you sure we want to block the (main?) thread in this case? Would it be better to somehow trigger an accessibility elements recollection once the table/collection finishes its updates?

@maicki maicki merged commit 8029632 into master Nov 14, 2018
@maicki maicki deleted the MSFixA11YCollectionNodeHorizontal branch December 13, 2018 02:21
nguyenhuy added a commit to nguyenhuy/Texture that referenced this pull request Jan 11, 2019
…view are committed in -accessibilityElements

The wait was introduced in TextureGroup#1217 which blocks the main thread until updates are proccessed. We suspect this causes perf regressions accross the app and need to confirm this via an experiment.
nguyenhuy added a commit that referenced this pull request Jan 11, 2019
…view are committed in -accessibilityElements

The wait was introduced in #1217 which blocks the main thread until updates are proccessed. We suspect this causes perf regressions accross the app and need to confirm this via an experiment.
nguyenhuy added a commit that referenced this pull request Jan 24, 2019
…iews under some circumstances (#1311)

* Add experiment to skip waiting until all updates of collection/table view are committed in -accessibilityElements

The wait was introduced in #1217 which blocks the main thread until updates are proccessed. We suspect this causes perf regressions accross the app and need to confirm this via an experiment.

* Add option to skip default behavior of ASCellLayoutMode

* Fix unit test

* Fix unit test in another way

* Remove import

* Minor change

* Add ASCellLayoutModeSyncForSmallContent

* Update unit tests

* Remove unnecessary change

* Remove unnecessary changes
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.

None yet

3 participants