Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Accessibility Screen reader has different behavior on iPhone X

I have webView and on LoadFinished method I'm invoking EvaluateJavascript for accessibility mode where it should focus the word or sentence in the web view content. The line of code below, works fine on every iOS device except iPhone X.

webView.EvaluateJavascript ("javascript: var element = document.getElementsByClassName('highlight'); setTimeout(function(){ element[0].focus(); }, 1500);");

The flow on iPhone X is: when screen is loaded instead of waiting 1.5 sec and then focus the element, element is focused immediate and then accessibility is focusing the first element of the screen (the button in the nav bar).

Could there be any difference in the accessibility screen reader on the iPhone X and the other iOS devices?

Sign In or Register to comment.