Files
flipper/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Serializers/UIDBounds+Foundation.m
Lorenzo Blasa db7aa9eeaf OSS
Summary: Move UIDebugger plugin to OSS space.

Reviewed By: passy

Differential Revision: D47634848

fbshipit-source-id: 90e8c0181a2434d0e5d76bdb99b902051e6d702e
2023-07-21 04:47:13 -07:00

27 lines
572 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 "UIDBounds+Foundation.h"
FB_LINKABLE(UIDBounds_Foundation)
@implementation UIDBounds (Foundation)
- (id)toFoundation {
return @{
@"x" : [NSNumber numberWithInt:self.x],
@"y" : [NSNumber numberWithInt:self.y],
@"width" : [NSNumber numberWithInt:self.width],
@"height" : [NSNumber numberWithInt:self.height],
};
}
@end
#endif