Monday 2 November 2020

Voice over - resume dictation

I have a page where the elements are added to the view in below order:


Self.view

  • title (Label)
  • close (Button)
  • back (Button)
  • next (Button)
  • scrollview

The Voice Over dictation is set to start from the title, close, next, back, and then to the subviews of scrollview. It works as expected unless until I leave to another page and come back. Whenever this page is loaded again from another view, it starts dictating from title all over again, though the page's UI stays at where it was last left at.

The scrollview is set to scroll in horizontal direction and it has 10 subviews(questions) to mimic a pagination effect. On 4th and 9th pages, I have option to where it needs to present another controller A. When dismissing from the controller A, the Voice Over starts dictating from title instead of resuming from the last element active i.e the 4th page's question or its options. This is a mockup of the placement of UI elements where I have difficulty fixing Voice Over elements order.


horizontalScroller.accessibilityElements = [firstQuestion, secondQuestion, thirdQuestion, fourthQuestion, fifthQuestion, sixthQuestion, seventhQuestion, eigthQuestion, ninthQuestion, finalQuestion]
view.accessibilityElements = [titlelabelLabel, closebuttonButton, nextButton, backButton, horizontalScroller]

I assume it is because Voice Over is designed to start all over from the beginning each time it loads a page. But, in this case it would be quite confusing to a visually impaired user to go over same question, IMO. Any help in tweaking this to resume where it was last at, would be highly appreciated.



from Voice over - resume dictation

No comments:

Post a Comment