Ship Decision on ASExperimentalDoNotCacheAccessibilityElements · Issue #1853 · TextureGroup/Texture · GitHub
Skip to content

Ship Decision on ASExperimentalDoNotCacheAccessibilityElements #1853

Closed

Description

@bolsinga

ASExperimentalDoNotCacheAccessibilityElements is in the code. Should it be on or off?

Landed with #1812

Activity

  1. rcancro commented on May 27, 2020

    @rcancro
    Contributor

    For context:

    I compared accessibility behavior between UIKit and Texture with a label that could dynamically become hidden (i.e., when a button was tapped). UIKit would skip the hidden button when navigating, but Texture would not. If I cleared out the cached _accessibilityElements and forced Texture to recompute them, then it behaved like UIKit.

    The goal of the experiment is to see how much it affects performance if we do not cache the elements. Ideally we would turn off caching so a user wouldn't have to know to invalidate the elements when UI components change their hidden state.

  2. rcancro commented on Jul 23, 2020

    @rcancro
    Contributor

    Shipped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions