added initial actionable elements
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d66d4d0e26
commit
4e581491fa
@ -346,8 +346,15 @@ open class TileContainerBase<PaddingType: DefaultValuing & Valuing>: View where
|
|||||||
containerView.setAccessibilityLabel(for: views)
|
containerView.setAccessibilityLabel(for: views)
|
||||||
|
|
||||||
//append all children that are accessible
|
//append all children that are accessible
|
||||||
items.append(contentsOf: elements)
|
if containerView.isAccessibilityElement {
|
||||||
|
elements.forEach({ element in
|
||||||
|
if element.accessibilityTraits.contains(.button) || element.accessibilityTraits.contains(.link) {
|
||||||
|
items.append(element)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
items.append(contentsOf: elements)
|
||||||
|
}
|
||||||
return items
|
return items
|
||||||
}
|
}
|
||||||
set {}
|
set {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user