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
23 lines
495 B
Objective-C
23 lines
495 B
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#if FB_SONARKIT_ENABLED
|
|
|
|
#import "UIDUIAccessibilityElementDescriptor.h"
|
|
#import "UIDBounds.h"
|
|
#import "UIDSnapshot.h"
|
|
|
|
@implementation UIDUIAccessibilityElementDescriptor
|
|
|
|
- (UIDBounds*)boundsForNode:(UIAccessibilityElement*)node {
|
|
return [UIDBounds fromRect:node.accessibilityFrame];
|
|
}
|
|
|
|
@end
|
|
|
|
#endif
|