mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Group accessible views using the view hierarchy
Summary: In iOS when a parent UIView returns YES on [shouldGroupAccessibilityChildren](https://developer.apple.com/documentation/objectivec/nsobject/1615143-shouldgroupaccessibilitychildren), VoiceOver groups together the accessible children of the parent view, regardless of their position on screen. In iOS this defaults to NO. Reviewed By: sammy-SC Differential Revision: D23844265 fbshipit-source-id: eb99bf0873ccfd9fb196f8f7b6eafe055f6ae810
This commit is contained in:
1 parent
c015f485c2
commit
e2fd9d4f22
1 file changed
+5
@@ -569,6 +569,11 @@ static NSString *RCTRecursiveAccessibilityLabel(UIView *view)
|
||||
|
||||
#pragma mark - Accessibility Events
|
||||
|
||||
- (BOOL)shouldGroupAccessibilityChildren
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (NSArray<UIAccessibilityCustomAction *> *)accessibilityCustomActions
|
||||
{
|
||||
auto const &accessibilityActions = _props->accessibilityActions;
|
||||
|
||||
Reference in new issue
Block a user