Capture accessibility hierarchy and package it for the sonar plugin

Summary: In this diff we load and call a private API enabling voiceover hierarchy and pass it over via existing channel when client is in the accessibility mode

Reviewed By: lblasa

Differential Revision: D49393813

fbshipit-source-id: 437af1131547218cd52f4a56797707411787d7cf
This commit is contained in:
Sash Zats
2023-09-20 12:41:38 -07:00
committed by Facebook GitHub Bot
parent 3f0e1f76d5
commit 550b49e690
9 changed files with 436 additions and 7 deletions

View File

@@ -17,11 +17,11 @@ FB_LINKABLE(UIDNode_Foundation)
- (id)toFoundation {
NSMutableDictionary* data = [NSMutableDictionary dictionaryWithDictionary:@{
@"id" : [NSNumber numberWithUnsignedInt:self.identifier],
@"qualifiedName" : self.qualifiedName,
@"qualifiedName" : self.qualifiedName ?: @"",
@"name" : self.name,
@"bounds" : [self.bounds toFoundation],
@"tags" : self.tags.allObjects,
@"inlineAttributes" : self.inlineAttributes,
@"tags" : self.tags ? self.tags.allObjects : @[],
@"inlineAttributes" : self.inlineAttributes ?: @{},
@"children" : self.children,
}];