Accessibility group - iOS
On iOS, you can group elements by setting isAccessibilityElement
to true
on the parent element. Don't forget to set an accessibilityLabel
for the group.
Sometimes it can be useful to also the shouldGroupAccessibilityChildren
property to group the accessibility elements that are children of the element, regardless of their positions on the screen.
group.isAccessibilityElement = true
group.shouldGroupAccessibilityChildren = true
group.accessibilityLabel = "Appt group"