Files
flipper/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDUIAccessibilityElementDescriptor.m
Sash Zats 550b49e690 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
2023-09-20 12:41:38 -07:00

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