VoiceOver Accessibility Tree out of sync with WKWebView contents

Hey,

We've run into an issue where WKWebView contents are not always available for VoiceOver users. It seems to occur when WKWebView contents are loaded asynchronously.

I have a sample project where this can be reproduced and a video showing the issue. See FB21257352

The only solution we currently see is forcing an update continuously using UIAccessibility.post(notification: .layoutChanged, argument: nil), but this is ofc a last resort as it may have other unintended side effects.

Thanks for the post.

Thank you for providing a screen recording and a focused sample of the bug filed. Your assistance is greatly appreciated. I believe this could be a bug, but please provide the engineering team with the opportunity to review your submission. They will communicate with you through the feedback assistant application.

For more details on when you'll see updates to your report, please see What to expect after submission.

Albert Pascual
  Worldwide Developer Relations.

VoiceOver Accessibility Tree out of sync with WKWebView contents
 
 
Q