parley-messaging / ios-library

Parley iOS app library
MIT License
2 stars 2 forks source link

Improve heading and container navigation for Voice Over #132

Open nlamah opened 3 months ago

nlamah commented 3 months ago

Describe the Bug The list of chats in the ParleyView can be very long. When a user is using voice over it can help the user to have various possibilities to navigate in this view.

Scenario 1: Use user wants to find a message on a certain date in the past. Current Situation:

Scenario 2: When the view is opened the user wants to go in as little swipes as possible to the compose view. (nice to have) Current Situation:

Both preferred scenarios could be reached by setting the heading trait to an element and setting the containerType. button.accessibilityContainerType = .semanticGroup By default a tableView header has the trait heading. In the ParleyView the date is a cell, so no heading trait.

Screenshots NB: Enable the audio for this videos.

This video shows both the problem from scenario 1 and 2 https://github.com/parley-messaging/ios-library/assets/2762698/bcf46a83-57df-4591-8b36-6b729bc73924

This video show what the preferred situation would be https://github.com/parley-messaging/ios-library/assets/2762698/6d20a068-31fc-4b19-a2fe-4cd3e36c746f