Customize element order
Customize element order
- Subject: Customize element order
- From: Ortwin Gentz via Accessibility-dev <email@hidden>
- Date: Fri, 15 Dec 2023 17:50:03 +0100
Hello,
I've the following view that can be expanded or collapsed when tapping Button:
collapsed:
- Button
- View 2
Expanded:
- Button
- View 2
- Table View with n cells
How can I include the table view cells in my Voice Over element order? By
default, Voice Over skips the Table View. However, when specifically hovering
over a Table View cell, VO speaks it.
I tried this:
var axElements: [Any] = [button, view1]
if expanded, let tableView, let elements = tableView.accessibilityElements {
axElements += elements
}
view.accessibilityElements = axElements
The problem is that tableView.accessibilityElements is nil, so the cells are
not added.
Any idea how I can accomplish this?
Best Regards,
Ortwin
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden